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:
rfm 2006-11-20 16:26:40 +00:00
parent 370df024a7
commit c68b761cfc
2 changed files with 6 additions and 2 deletions

View file

@ -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>
* Source/NSAffineTransform.m: Adapted from old gui code

View file

@ -1183,8 +1183,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
case 'Z':
for (tmpIdx = sourceIdx; tmpIdx < sourceLen; tmpIdx++)
{
if (isalpha(source[tmpIdx]) || source[tmpIdx] == '-'
|| source[tmpIdx] == '+')
if (!isspace(source[tmpIdx]))
{
tmpStr[tmpIdx - sourceIdx] = source[tmpIdx];
}