Commit 2cb13152 authored by Peter Eriksson's avatar Peter Eriksson
Browse files

isascii() defeats the setlocale(iso8859-1) call.

parent e77affe5
......@@ -37,7 +37,7 @@ fskipwhite(FILE *fp)
{
int c;
while ( (c = getc(fp)) != EOF && isascii(c) && isspace(c) )
while ( (c = getc(fp)) != EOF && /* isascii(c) && */ isspace(c) )
;
ungetc(c, fp);
......@@ -51,7 +51,7 @@ fparse_long(FILE *fp)
int c;
fskipwhite(fp);
while ( (c = getc(fp)) != EOF && isascii(c) && isdigit(c))
while ( (c = getc(fp)) != EOF && /* isascii(c) && */ isdigit(c))
{
foo = 1;
res = 10 * res + c - '0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment