|
Packit |
a4aae4 |
/* Determine a canonical name for the current locale's character encoding.
|
|
Packit |
a4aae4 |
Copyright (C) 2000-2003, 2009-2017 Free Software Foundation, Inc.
|
|
Packit |
a4aae4 |
This file is part of the GNU CHARSET Library.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
This program is free software; you can redistribute it and/or modify
|
|
Packit |
a4aae4 |
it under the terms of the GNU Lesser General Public License as published by
|
|
Packit |
a4aae4 |
the Free Software Foundation; either version 2, or (at your option)
|
|
Packit |
a4aae4 |
any later version.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
a4aae4 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a4aae4 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
a4aae4 |
GNU Lesser General Public License for more details.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
You should have received a copy of the GNU Lesser General Public License along
|
|
Packit |
a4aae4 |
with this program; if not, see <http://www.gnu.org/licenses/>. */
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
#ifndef _LOCALCHARSET_H
|
|
Packit |
a4aae4 |
#define _LOCALCHARSET_H
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
#ifdef __cplusplus
|
|
Packit |
a4aae4 |
extern "C" {
|
|
Packit |
a4aae4 |
#endif
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
/* Determine the current locale's character encoding, and canonicalize it
|
|
Packit |
a4aae4 |
into one of the canonical names listed in config.charset.
|
|
Packit |
a4aae4 |
The result must not be freed; it is statically allocated.
|
|
Packit |
a4aae4 |
If the canonical name cannot be determined, the result is a non-canonical
|
|
Packit |
a4aae4 |
name. */
|
|
Packit |
a4aae4 |
extern const char * locale_charset (void);
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
#ifdef __cplusplus
|
|
Packit |
a4aae4 |
}
|
|
Packit |
a4aae4 |
#endif
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
#endif /* _LOCALCHARSET_H */
|