localename.h | localename.h | |||
---|---|---|---|---|
/* Determine name of the currently selected locale. | /* Determine name of the currently selected locale. | |||
Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. | Copyright (C) 2007, 2009-2014 Free Software Foundation, Inc. | |||
This program is free software; you can redistribute it and/or modify it | This program is free software: you can redistribute it and/or modify | |||
under the terms of the GNU Library General Public License as published | it under the terms of the GNU Lesser General Public License as published | |||
by the Free Software Foundation; either version 2, or (at your option) | by | |||
any later version. | the Free Software Foundation; either version 2.1 of the License, or | |||
(at your option) any later version. | ||||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
Library General Public License for more details. | GNU Lesser General Public License for more details. | |||
You should have received a copy of the GNU Library General Public | You should have received a copy of the GNU Lesser General Public License | |||
License along with this program; if not, write to the Free Software | along with this program. If not, see <http://www.gnu.org/licenses/>. * | |||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | / | |||
, | ||||
USA. */ | ||||
#ifndef _GL_LOCALENAME_H | #ifndef _GL_LOCALENAME_H | |||
#define _GL_LOCALENAME_H | #define _GL_LOCALENAME_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/* Determine the current locale's name. | /* Determine the current locale's name. | |||
It considers both the POSIX notion of locale name (see functions | It considers both the POSIX notion of locale name (see functions | |||
skipping to change at line 89 | skipping to change at line 87 | |||
Quoting POSIX:2001: | Quoting POSIX:2001: | |||
"All implementations shall define a locale as the default locale, | "All implementations shall define a locale as the default locale, | |||
to be invoked when no environment variables are set, or set to the | to be invoked when no environment variables are set, or set to the | |||
empty string. This default locale can be the C locale or any other | empty string. This default locale can be the C locale or any other | |||
implementation-defined locale. Some implementations may provide | implementation-defined locale. Some implementations may provide | |||
facilities for local installation administrators to set the default | facilities for local installation administrators to set the default | |||
locale, customizing it for each location. IEEE Std 1003.1-2001 does | locale, customizing it for each location. IEEE Std 1003.1-2001 does | |||
not require such a facility." | not require such a facility." | |||
The result must not be freed; it is statically allocated. */ | The result must not be freed; it is statically allocated. */ | |||
extern const char * gl_locale_name_default (void); | extern const char * gl_locale_name_default (void) | |||
#if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE \ | ||||
|| defined _WIN32 || defined __WIN32__ || defined __CYGWIN__) | ||||
_GL_ATTRIBUTE_CONST | ||||
#endif | ||||
; | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif /* _GL_LOCALENAME_H */ | #endif /* _GL_LOCALENAME_H */ | |||
End of changes. 5 change blocks. | ||||
13 lines changed or deleted | 17 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |