1*16dce513Schristos /* Determine a canonical name for the current locale's character encoding. 2*16dce513Schristos Copyright (C) 2000-2003 Free Software Foundation, Inc. 3*16dce513Schristos This file is part of the GNU CHARSET Library. 4*16dce513Schristos 5*16dce513Schristos This program is free software; you can redistribute it and/or modify it 6*16dce513Schristos under the terms of the GNU Library General Public License as published 7*16dce513Schristos by the Free Software Foundation; either version 2, or (at your option) 8*16dce513Schristos any later version. 9*16dce513Schristos 10*16dce513Schristos This program is distributed in the hope that it will be useful, 11*16dce513Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 12*16dce513Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13*16dce513Schristos Library General Public License for more details. 14*16dce513Schristos 15*16dce513Schristos You should have received a copy of the GNU Library General Public 16*16dce513Schristos License along with this program; if not, write to the Free Software 17*16dce513Schristos Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, 18*16dce513Schristos USA. */ 19*16dce513Schristos 20*16dce513Schristos #ifndef _LOCALCHARSET_H 21*16dce513Schristos #define _LOCALCHARSET_H 22*16dce513Schristos 23*16dce513Schristos 24*16dce513Schristos #ifdef __cplusplus 25*16dce513Schristos extern "C" { 26*16dce513Schristos #endif 27*16dce513Schristos 28*16dce513Schristos 29*16dce513Schristos /* Determine the current locale's character encoding, and canonicalize it 30*16dce513Schristos into one of the canonical names listed in config.charset. 31*16dce513Schristos The result must not be freed; it is statically allocated. 32*16dce513Schristos If the canonical name cannot be determined, the result is a non-canonical 33*16dce513Schristos name. */ 34*16dce513Schristos extern const char * locale_charset (void); 35*16dce513Schristos 36*16dce513Schristos 37*16dce513Schristos #ifdef __cplusplus 38*16dce513Schristos } 39*16dce513Schristos #endif 40*16dce513Schristos 41*16dce513Schristos 42*16dce513Schristos #endif /* _LOCALCHARSET_H */ 43