summaryrefslogtreecommitdiff
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
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)
-rw-r--r--textproc/par/Makefile1
-rw-r--r--textproc/par/files/patch-par.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/textproc/par/Makefile b/textproc/par/Makefile
index 6aae4cedd3de..832fb3b09cb5 100644
--- a/textproc/par/Makefile
+++ b/textproc/par/Makefile
@@ -7,6 +7,7 @@
PORTNAME= par
PORTVERSION= 1.52
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.nicemice.net/par/
DISTNAME= Par${PORTVERSION:S|.||}
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;