mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Use default c-string encoding for loading other locale info.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24859 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
235009b56b
commit
bad585bb00
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSLocale.m: Expect locale information (nl_langinfo) to be in
|
||||
default c-string encoding ... though it's debatable how one knows what
|
||||
that should be.
|
||||
|
||||
2007-03-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* NSTimeZones/NSTimeZones.tar: regenerated.
|
||||
|
|
|
@ -81,7 +81,9 @@ GSSetLocale(int category, NSString *locale)
|
|||
return locale;
|
||||
}
|
||||
|
||||
#define GSLanginfo(value) [NSString stringWithUTF8String: nl_langinfo (value)]
|
||||
#define GSLanginfo(value) [NSString stringWithCString: nl_langinfo (value) \
|
||||
encoding: [NSString defaultCStringEncoding]]
|
||||
|
||||
|
||||
/* Creates a locale dictionary from information provided by i18n functions.
|
||||
Many, but not all, of the keys are filled in or inferred from the
|
||||
|
|
Loading…
Reference in a new issue