Add currency code when creating locale identifiers. And fix a crash in NSDateFormatter due to double release.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Bidigaray 2011-01-27 00:37:52 +00:00
parent 807395c0a1
commit 3029c5982c
3 changed files with 18 additions and 5 deletions

View file

@ -105,7 +105,7 @@ static NSDateFormatterBehavior _defaultBehavior = 0;
udat_toPattern (_formatter, 0, value, length, &err);
}
_dateFormat = [NSString stringWithCharacters: value length: length];
_dateFormat = [[NSString alloc] initWithCharacters: value length: length];
if (length > BUFFER_SIZE)
NSZoneFree ([self zone], value);