aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/par/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-04-17 20:46:28 +0800
committerpav <pav@FreeBSD.org>2004-04-17 20:46:28 +0800
commit174da08db7893cff6a9472c320dd76705edfa8ba (patch)
tree7691783846813cd7819a7f5c0f897929d22343c3 /textproc/par/files
parent8ec1b03e1ee8eb0d355bc8f5a63176c173d263d5 (diff)
downloadfreebsd-ports-gnome-174da08db7893cff6a9472c320dd76705edfa8ba.tar.gz
freebsd-ports-gnome-174da08db7893cff6a9472c320dd76705edfa8ba.tar.zst
freebsd-ports-gnome-174da08db7893cff6a9472c320dd76705edfa8ba.zip
- 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)
Diffstat (limited to 'textproc/par/files')
-rw-r--r--textproc/par/files/patch-par.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/textproc/par/files/patch-par.c b/textproc/par/files/patch-par.c
new file mode 100644
index 000000000000..2bcf4868cec8
--- /dev/null
+++ b/textproc/par/files/patch-par.c
@@ -0,0 +1,12 @@
+--- 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;