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