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