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