You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
572 B
17 lines
572 B
|
22 years ago
|
On some platforms (e.g. FreeBSD), Par does not work as expected because
|
||
|
|
the isspace(3) system call returns true for the non-breaking space
|
||
|
|
character 0xA0. This patch work-arounds this problem.
|
||
|
|
|
||
|
|
--- 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;
|