mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
94e9bf5c50
commit
93bf36acec
3 changed files with 18 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue