Locale/language fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-02-20 07:16:25 +00:00
parent 36dd6aad2f
commit 27837908bb
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,8 @@
* configure: regenerated * configure: regenerated
* Source/NSRunLoop.m: ([acceptInputForMode:beforeDate:]) block until * Source/NSRunLoop.m: ([acceptInputForMode:beforeDate:]) block until
limit date even if no I/O is possible. limit date even if no I/O is possible.
* Source/NSUserDefaults.m: Patch by Alexander Malmberg to try all
listed locales rather than giving up at first failure.
2002-02-13 Richard Frith-Macdonald <rfm@gnu.org> 2002-02-13 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -404,7 +404,7 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
{ {
NSString *locale = GSSetLocale(nil); NSString *locale = GSSetLocale(nil);
if (locale == nil) if (locale == nil)
break; continue;
/* See if we can get the dictionary from i18n functions. /* See if we can get the dictionary from i18n functions.
Note that we get the dict from the current locale regardless Note that we get the dict from the current locale regardless
of what 'lang' is, since it should match anyway. */ of what 'lang' is, since it should match anyway. */