freebsd-ports/textproc/par/files/patch-par.c
Pav Lucistnik bcb2637b9c - Par 1.52 on FreeBSD does not work as expected by the upstreams author. On
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)
2004-04-17 12:46:28 +00:00

13 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;