mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
|
@ -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…
Add table
Add a link
Reference in a new issue