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:
fedor 2002-06-20 02:41:26 +00:00
parent e74f169f9e
commit e3e8e81196
2 changed files with 6 additions and 2 deletions

View file

@ -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> 2002-06-18 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSURL.m: Cope with a URL where the path is missing. * Source/NSURL.m: Cope with a URL where the path is missing.

View file

@ -45,13 +45,13 @@
const char* const char*
GSSetLocaleC(const char *loc) 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 /* Set the locale for libc functions from the supplied string or from
the environment if not specified. This function should be called the environment if not specified. This function should be called
as soon as possible after the start of the program. Passing 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 whatever is specified by setlocale) Passing nil will just return the
current locale. */ current locale. */
NSString * NSString *