summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-12-06 16:06:49 -0700
committerKarl Williamson <khw@cpan.org>2014-12-09 11:43:32 -0700
commit239f83d5b3d443f78d6f2c12df7ff685f9bb7e65 (patch)
tree0ae16bba4c51abddc4a0b2d99227434d20bbdd6e /toke.c
parentc536450b09fc53d9fd03b72f6cbd62c89d4fd30f (diff)
downloadperl-239f83d5b3d443f78d6f2c12df7ff685f9bb7e65.tar.gz
toke.c: Generalize trace for non-ASCII platform
This was very ASCII-specific. The newer is clearer and saves a test.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index ae832c0745..d364e42fca 100644
--- a/toke.c
+++ b/toke.c
@@ -399,7 +399,7 @@ S_tokereport(pTHX_ I32 rv, const YYSTYPE* lvalp)
}
if (name)
Perl_sv_catpv(aTHX_ report, name);
- else if ((char)rv > ' ' && (char)rv <= '~')
+ else if (isGRAPH(rv))
{
Perl_sv_catpvf(aTHX_ report, "'%c'", (char)rv);
if ((char)rv == 'p')