Annotation of embedaddon/libiconv/libcharset/include/localcharset.h.build.in, revision 1.1.1.2
1.1 misho 1: /* Determine a canonical name for the current locale's character encoding.
1.1.1.2 ! misho 2: Copyright (C) 2000-2003, 2009-2018 Free Software Foundation, Inc.
1.1 misho 3: This file is part of the GNU CHARSET Library.
4:
5: This program is free software; you can redistribute it and/or modify it
6: under the terms of the GNU Library General Public License as published
7: by the Free Software Foundation; either version 2, or (at your option)
8: any later version.
9:
10: This program is distributed in the hope that it will be useful,
11: but WITHOUT ANY WARRANTY; without even the implied warranty of
12: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: Library General Public License for more details.
14:
1.1.1.2 ! misho 15: You should have received a copy of the GNU Library General Public License
! 16: along with this program; if not, see <https://www.gnu.org/licenses/>. */
1.1 misho 17:
18: #ifndef _LOCALCHARSET_H
19: #define _LOCALCHARSET_H
20:
21: #if @HAVE_VISIBILITY@ && BUILDING_LIBCHARSET
22: #define LIBCHARSET_DLL_EXPORTED __attribute__((__visibility__("default")))
1.1.1.2 ! misho 23: #elif defined _MSC_VER && BUILDING_LIBCHARSET
! 24: #define LIBCHARSET_DLL_EXPORTED __declspec(dllexport)
1.1 misho 25: #else
26: #define LIBCHARSET_DLL_EXPORTED
27: #endif
28:
29:
30: #ifdef __cplusplus
31: extern "C" {
32: #endif
33:
34:
35: /* Determine the current locale's character encoding, and canonicalize it
1.1.1.2 ! misho 36: into one of the canonical names listed below.
1.1 misho 37: The result must not be freed; it is statically allocated.
38: If the canonical name cannot be determined, the result is a non-canonical
39: name. */
40: extern LIBCHARSET_DLL_EXPORTED const char * locale_charset (void);
41:
1.1.1.2 ! misho 42: /* About GNU canonical names for character encodings:
! 43:
! 44: Every canonical name must be supported by GNU libiconv. Support by GNU libc
! 45: is also desirable.
! 46:
! 47: The name is case insensitive. Usually an upper case MIME charset name is
! 48: preferred.
! 49:
! 50: The current list of these GNU canonical names is:
! 51:
! 52: name MIME? used by which systems
! 53: (darwin = Mac OS X, windows = native Windows)
! 54:
! 55: ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin minix cygwin
! 56: ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
! 57: ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
! 58: ISO-8859-3 Y glibc solaris cygwin
! 59: ISO-8859-4 Y hpux osf solaris freebsd netbsd openbsd darwin
! 60: ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
! 61: ISO-8859-6 Y glibc aix hpux solaris cygwin
! 62: ISO-8859-7 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
! 63: ISO-8859-8 Y glibc aix hpux osf solaris cygwin
! 64: ISO-8859-9 Y glibc aix hpux irix osf solaris freebsd darwin cygwin
! 65: ISO-8859-13 glibc hpux solaris freebsd netbsd openbsd darwin cygwin
! 66: ISO-8859-14 glibc cygwin
! 67: ISO-8859-15 glibc aix irix osf solaris freebsd netbsd openbsd darwin cygwin
! 68: KOI8-R Y glibc hpux solaris freebsd netbsd openbsd darwin
! 69: KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin
! 70: KOI8-T glibc
! 71: CP437 dos
! 72: CP775 dos
! 73: CP850 aix osf dos
! 74: CP852 dos
! 75: CP855 dos
! 76: CP856 aix
! 77: CP857 dos
! 78: CP861 dos
! 79: CP862 dos
! 80: CP864 dos
! 81: CP865 dos
! 82: CP866 freebsd netbsd openbsd darwin dos
! 83: CP869 dos
! 84: CP874 windows dos
! 85: CP922 aix
! 86: CP932 aix cygwin windows dos
! 87: CP943 aix
! 88: CP949 osf darwin windows dos
! 89: CP950 windows dos
! 90: CP1046 aix
! 91: CP1124 aix
! 92: CP1125 dos
! 93: CP1129 aix
! 94: CP1131 freebsd darwin
! 95: CP1250 windows
! 96: CP1251 glibc hpux solaris freebsd netbsd openbsd darwin cygwin windows
! 97: CP1252 aix windows
! 98: CP1253 windows
! 99: CP1254 windows
! 100: CP1255 glibc windows
! 101: CP1256 windows
! 102: CP1257 windows
! 103: GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin cygwin
! 104: EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin
! 105: EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin
! 106: EUC-TW glibc aix hpux irix osf solaris netbsd
! 107: BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin
! 108: BIG5-HKSCS glibc hpux solaris netbsd darwin
! 109: GBK glibc aix osf solaris freebsd darwin cygwin windows dos
! 110: GB18030 glibc hpux solaris freebsd netbsd darwin
! 111: SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin
! 112: JOHAB glibc solaris windows
! 113: TIS-620 glibc aix hpux osf solaris cygwin
! 114: VISCII Y glibc
! 115: TCVN5712-1 glibc
! 116: ARMSCII-8 glibc freebsd netbsd darwin
! 117: GEORGIAN-PS glibc cygwin
! 118: PT154 glibc netbsd cygwin
! 119: HP-ROMAN8 hpux
! 120: HP-ARABIC8 hpux
! 121: HP-GREEK8 hpux
! 122: HP-HEBREW8 hpux
! 123: HP-TURKISH8 hpux
! 124: HP-KANA8 hpux
! 125: DEC-KANJI osf
! 126: DEC-HANYU osf
! 127: UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin
! 128:
! 129: Note: Names which are not marked as being a MIME name should not be used in
! 130: Internet protocols for information interchange (mail, news, etc.).
! 131:
! 132: Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications
! 133: must understand both names and treat them as equivalent.
! 134: */
! 135:
1.1 misho 136:
137: #ifdef __cplusplus
138: }
139: #endif
140:
141:
142: #endif /* _LOCALCHARSET_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>