Blame gettext-runtime/intl/localcharset.h

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