bcb2637b9c
FreeBSD, the isspace() system call returns true for the non-breaking space character 0xA0, but this is an unintended side effect. PR: ports/64845 Submitted by: Jean-Baptiste Quenot <jb.quenot@caraldi.com> Not objected: maintainer (2 weeks)
12 lines
375 B
C
12 lines
375 B
C
--- par.c.orig Sun Mar 28 16:00:15 2004
|
|
+++ par.c Sun Mar 28 16:04:00 2004
|
|
@@ -403,7 +403,8 @@
|
|
}
|
|
continue;
|
|
}
|
|
- if (isspace(c)) ch = ' ';
|
|
+ // Exclude non-breaking space from the class of space chars
|
|
+ if (isspace(c) && isascii(c)) ch = ' ';
|
|
else blank = 0;
|
|
additem(cbuf, &ch, errmsg);
|
|
if (*errmsg) goto rlcleanup;
|