mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* Source/GSLocale.m (GSLanguageFromLocale): Handle local "C.UTF-8"
correctly. Needed for Cygwin. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef1ce8744b
commit
866c1dfcb4
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-07-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSLocale.m (GSLanguageFromLocale): Handle local "C.UTF-8"
|
||||
correctly. Needed for Cygwin.
|
||||
|
||||
2011-07-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* config/config.ffi.c: Move declaration of g_dbl to begin of
|
||||
|
|
|
@ -263,6 +263,8 @@ GSLanguageFromLocale(NSString *locale)
|
|||
if (language == nil && [locale pathExtension] != nil)
|
||||
{
|
||||
locale = [locale stringByDeletingPathExtension];
|
||||
if ([locale isEqual: @"C"] || [locale isEqual: @"POSIX"])
|
||||
return @"English";
|
||||
language = [dict objectForKey: locale];
|
||||
}
|
||||
if (language == nil)
|
||||
|
|
Loading…
Reference in a new issue