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:
Richard Frith-MacDonald 2007-03-13 12:20:45 +00:00
parent 235009b56b
commit bad585bb00
2 changed files with 9 additions and 1 deletions

View file

@ -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