Backport timezone parsing fix from trunk

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/base-1_13_0@24139 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-11-20 16:27:59 +00:00
parent ae7e4ecf79
commit aa2ba541e7

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];
}