Fixups for libxml bug/feature

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-05-12 19:23:02 +00:00
parent 3cff27ca8e
commit 1d6f162285
6 changed files with 135 additions and 12 deletions

View file

@ -922,7 +922,7 @@ NSDictionary *locale)
if (grouping == (const char *) -1)
{
thousands_sep = [locale objectForKey: NSThousandsSeparator];
if (!thousands_sep) thousands_sep = @",";
if (thousands_sep == nil) thousands_sep = @",";
grouping = ""; // FIXME: grouping info missing in locale?
if (*grouping == '\0' || *grouping == CHAR_MAX)
@ -1405,6 +1405,7 @@ NSDictionary *locale)
NSString *decimal_sep;
decimal_sep = [locale objectForKey: NSDecimalSeparator];
if (decimal_sep == nil) decimal_sep = @".";
bp = buf1;
@ -1525,6 +1526,7 @@ NSDictionary *locale)
NSString *decimal_sep;
decimal_sep = [locale objectForKey: NSDecimalSeparator];
if (decimal_sep == nil) decimal_sep = @".";
bp = buf1;