mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- 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)
This commit is contained in:
parent
f7e4ffa0bd
commit
bcb2637b9c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107325
2 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= par
|
||||
PORTVERSION= 1.52
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://www.nicemice.net/par/
|
||||
DISTNAME= Par${PORTVERSION:S|.||}
|
||||
|
|
12
textproc/par/files/patch-par.c
Normal file
12
textproc/par/files/patch-par.c
Normal file
|
@ -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;
|
Loading…
Add table
Reference in a new issue