summaryrefslogtreecommitdiff
path: root/textproc/par/files/patch-par.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-04-17 12:46:28 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-04-17 12:46:28 +0000
commitbcb2637b9cb07c4c98e523fad65b15cb34d7ad07 (patch)
tree0afd0db67d70d4835192823e4626ab121f6df40a /textproc/par/files/patch-par.c
parentAdd missing directory (diff)
- 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/patch-par.c')
-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;