Blame lib/localcharset.h

Packit 8f70b4
/* Determine a canonical name for the current locale's character encoding.
Packit 8f70b4
   Copyright (C) 2000-2003, 2009-2018 Free Software Foundation, Inc.
Packit 8f70b4
   This file is part of the GNU CHARSET Library.
Packit 8f70b4
Packit 8f70b4
   This program is free software; you can redistribute it and/or modify
Packit 8f70b4
   it under the terms of the GNU General Public License as published by
Packit 8f70b4
   the Free Software Foundation; either version 3, or (at your option)
Packit 8f70b4
   any later version.
Packit 8f70b4
Packit 8f70b4
   This program is distributed in the hope that it will be useful,
Packit 8f70b4
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8f70b4
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 8f70b4
   GNU General Public License for more details.
Packit 8f70b4
Packit 8f70b4
   You should have received a copy of the GNU General Public License along
Packit 8f70b4
   with this program; if not, see <https://www.gnu.org/licenses/>.  */
Packit 8f70b4
Packit 8f70b4
#ifndef _LOCALCHARSET_H
Packit 8f70b4
#define _LOCALCHARSET_H
Packit 8f70b4
Packit 8f70b4
Packit 8f70b4
#ifdef __cplusplus
Packit 8f70b4
extern "C" {
Packit 8f70b4
#endif
Packit 8f70b4
Packit 8f70b4
Packit 8f70b4
/* Determine the current locale's character encoding, and canonicalize it
Packit 8f70b4
   into one of the canonical names listed below.
Packit 8f70b4
   The result must not be freed; it is statically allocated.
Packit 8f70b4
   If the canonical name cannot be determined, the result is a non-canonical
Packit 8f70b4
   name.  */
Packit 8f70b4
extern const char * locale_charset (void);
Packit 8f70b4
Packit 8f70b4
/* About GNU canonical names for character encodings:
Packit 8f70b4
Packit 8f70b4
   Every canonical name must be supported by GNU libiconv.  Support by GNU libc
Packit 8f70b4
   is also desirable.
Packit 8f70b4
Packit 8f70b4
   The name is case insensitive.  Usually an upper case MIME charset name is
Packit 8f70b4
   preferred.
Packit 8f70b4
Packit 8f70b4
   The current list of these GNU canonical names is:
Packit 8f70b4
Packit 8f70b4
       name              MIME?             used by which systems
Packit 8f70b4
                                    (darwin = Mac OS X, windows = native Windows)
Packit 8f70b4
Packit 8f70b4
   ASCII, ANSI_X3.4-1968       glibc solaris freebsd netbsd darwin minix cygwin
Packit 8f70b4
   ISO-8859-1              Y   glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   ISO-8859-2              Y   glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   ISO-8859-3              Y   glibc solaris cygwin
Packit 8f70b4
   ISO-8859-4              Y   hpux osf solaris freebsd netbsd openbsd darwin
Packit 8f70b4
   ISO-8859-5              Y   glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   ISO-8859-6              Y   glibc aix hpux solaris cygwin
Packit 8f70b4
   ISO-8859-7              Y   glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   ISO-8859-8              Y   glibc aix hpux osf solaris cygwin
Packit 8f70b4
   ISO-8859-9              Y   glibc aix hpux irix osf solaris freebsd darwin cygwin
Packit 8f70b4
   ISO-8859-13                 glibc hpux solaris freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   ISO-8859-14                 glibc cygwin
Packit 8f70b4
   ISO-8859-15                 glibc aix irix osf solaris freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   KOI8-R                  Y   glibc hpux solaris freebsd netbsd openbsd darwin
Packit 8f70b4
   KOI8-U                  Y   glibc freebsd netbsd openbsd darwin cygwin
Packit 8f70b4
   KOI8-T                      glibc
Packit 8f70b4
   CP437                       dos
Packit 8f70b4
   CP775                       dos
Packit 8f70b4
   CP850                       aix osf dos
Packit 8f70b4
   CP852                       dos
Packit 8f70b4
   CP855                       dos
Packit 8f70b4
   CP856                       aix
Packit 8f70b4
   CP857                       dos
Packit 8f70b4
   CP861                       dos
Packit 8f70b4
   CP862                       dos
Packit 8f70b4
   CP864                       dos
Packit 8f70b4
   CP865                       dos
Packit 8f70b4
   CP866                       freebsd netbsd openbsd darwin dos
Packit 8f70b4
   CP869                       dos
Packit 8f70b4
   CP874                       windows dos
Packit 8f70b4
   CP922                       aix
Packit 8f70b4
   CP932                       aix cygwin windows dos
Packit 8f70b4
   CP943                       aix
Packit 8f70b4
   CP949                       osf darwin windows dos
Packit 8f70b4
   CP950                       windows dos
Packit 8f70b4
   CP1046                      aix
Packit 8f70b4
   CP1124                      aix
Packit 8f70b4
   CP1125                      dos
Packit 8f70b4
   CP1129                      aix
Packit 8f70b4
   CP1131                      freebsd darwin
Packit 8f70b4
   CP1250                      windows
Packit 8f70b4
   CP1251                      glibc hpux solaris freebsd netbsd openbsd darwin cygwin windows
Packit 8f70b4
   CP1252                      aix windows
Packit 8f70b4
   CP1253                      windows
Packit 8f70b4
   CP1254                      windows
Packit 8f70b4
   CP1255                      glibc windows
Packit 8f70b4
   CP1256                      windows
Packit 8f70b4
   CP1257                      windows
Packit 8f70b4
   GB2312                  Y   glibc aix hpux irix solaris freebsd netbsd darwin cygwin
Packit 8f70b4
   EUC-JP                  Y   glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin
Packit 8f70b4
   EUC-KR                  Y   glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin
Packit 8f70b4
   EUC-TW                      glibc aix hpux irix osf solaris netbsd
Packit 8f70b4
   BIG5                    Y   glibc aix hpux osf solaris freebsd netbsd darwin cygwin
Packit 8f70b4
   BIG5-HKSCS                  glibc hpux solaris netbsd darwin
Packit 8f70b4
   GBK                         glibc aix osf solaris freebsd darwin cygwin windows dos
Packit 8f70b4
   GB18030                     glibc hpux solaris freebsd netbsd darwin
Packit 8f70b4
   SHIFT_JIS               Y   hpux osf solaris freebsd netbsd darwin
Packit 8f70b4
   JOHAB                       glibc solaris windows
Packit 8f70b4
   TIS-620                     glibc aix hpux osf solaris cygwin
Packit 8f70b4
   VISCII                  Y   glibc
Packit 8f70b4
   TCVN5712-1                  glibc
Packit 8f70b4
   ARMSCII-8                   glibc freebsd netbsd darwin
Packit 8f70b4
   GEORGIAN-PS                 glibc cygwin
Packit 8f70b4
   PT154                       glibc netbsd cygwin
Packit 8f70b4
   HP-ROMAN8                   hpux
Packit 8f70b4
   HP-ARABIC8                  hpux
Packit 8f70b4
   HP-GREEK8                   hpux
Packit 8f70b4
   HP-HEBREW8                  hpux
Packit 8f70b4
   HP-TURKISH8                 hpux
Packit 8f70b4
   HP-KANA8                    hpux
Packit 8f70b4
   DEC-KANJI                   osf
Packit 8f70b4
   DEC-HANYU                   osf
Packit 8f70b4
   UTF-8                   Y   glibc aix hpux osf solaris netbsd darwin cygwin
Packit 8f70b4
Packit 8f70b4
   Note: Names which are not marked as being a MIME name should not be used in
Packit 8f70b4
   Internet protocols for information interchange (mail, news, etc.).
Packit 8f70b4
Packit 8f70b4
   Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names.  Applications
Packit 8f70b4
   must understand both names and treat them as equivalent.
Packit 8f70b4
 */
Packit 8f70b4
Packit 8f70b4
Packit 8f70b4
#ifdef __cplusplus
Packit 8f70b4
}
Packit 8f70b4
#endif
Packit 8f70b4
Packit 8f70b4
Packit 8f70b4
#endif /* _LOCALCHARSET_H */