diff --git a/ChangeLog b/ChangeLog index 1de2cb20f..7ff9bdede 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-06-19 Adam Fedor + + * Source/GSLocale.m (GSSetLocaleC): Only set locale for LC_CTYPE. + 2002-06-18 Richard Frith-Macdonald * Source/NSURL.m: Cope with a URL where the path is missing. diff --git a/Source/GSLocale.m b/Source/GSLocale.m index fd0708c37..41c9a0da9 100644 --- a/Source/GSLocale.m +++ b/Source/GSLocale.m @@ -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 *