mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-02 04:41:05 +00:00
Fix for parsing timezone names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24138 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
370df024a7
commit
c68b761cfc
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-11-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSCalendarDate.m: Fix to parse timezone names as being
|
||||||
|
whitespace delimited.
|
||||||
|
|
||||||
2006-11-19 Richard Frith-Macdonald <rfm@gnu.org>
|
2006-11-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSAffineTransform.m: Adapted from old gui code
|
* Source/NSAffineTransform.m: Adapted from old gui code
|
||||||
|
|
|
@ -1183,8 +1183,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
|
||||||
case 'Z':
|
case 'Z':
|
||||||
for (tmpIdx = sourceIdx; tmpIdx < sourceLen; tmpIdx++)
|
for (tmpIdx = sourceIdx; tmpIdx < sourceLen; tmpIdx++)
|
||||||
{
|
{
|
||||||
if (isalpha(source[tmpIdx]) || source[tmpIdx] == '-'
|
if (!isspace(source[tmpIdx]))
|
||||||
|| source[tmpIdx] == '+')
|
|
||||||
{
|
{
|
||||||
tmpStr[tmpIdx - sourceIdx] = source[tmpIdx];
|
tmpStr[tmpIdx - sourceIdx] = source[tmpIdx];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue