opnsense-ports/textproc/par/files/patch-par.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

12 lines
401 B
C

--- ./par.c.orig 2001-04-02 05:25:57.000000000 +0100
+++ ./par.c 2014-02-10 21:14:29.000000000 +0000
@@ -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;