mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Set only LC_CTYPE locale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13923 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1d502f118c
commit
e816cc9d41
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-06-19 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/GSLocale.m (GSSetLocaleC): Only set locale for LC_CTYPE.
|
||||
|
||||
2002-06-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSURL.m: Cope with a URL where the path is missing.
|
||||
|
|
|
@ -45,13 +45,13 @@
|
|||
const char*
|
||||
GSSetLocaleC(const char *loc)
|
||||
{
|
||||
return setlocale(LC_ALL, loc);
|
||||
return setlocale(LC_CTYPE, loc);
|
||||
}
|
||||
|
||||
/* Set the locale for libc functions from the supplied string or from
|
||||
the environment if not specified. This function should be called
|
||||
as soon as possible after the start of the program. Passing
|
||||
@"" will set the locale from the environment variables LC_ALL or LANG (or
|
||||
@"" will set the locale from the environment variables LC_CTYPE or LANG (or
|
||||
whatever is specified by setlocale) Passing nil will just return the
|
||||
current locale. */
|
||||
NSString *
|
||||
|
|
Loading…
Reference in a new issue