openbsd-ports/devel/re2c/patches/patch-dfa_cc
2013-07-06 08:22:04 +00:00

17 lines
524 B
Plaintext

$OpenBSD: patch-dfa_cc,v 1.3 2013/07/06 08:22:04 sthen Exp $
Our isprint() has a different idea of which chars are printable
than the system on which the regression tests were written.
--- dfa.cc.orig Thu Jul 4 23:39:34 2013
+++ dfa.cc Fri Jul 5 21:09:28 2013
@@ -16,7 +16,7 @@ void prtChOrHex(std::ostream& o, uint c)
prtHex(o, c);
if (DFlag) o << '"';
}
- else if ((c < 256u) && (isprint(c) || isspace(c)))
+ else if ((c < 128u) && (isprint(c) || isspace(c)))
{
o << (DFlag ? '"' : '\'');
prtCh(o, c);