summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-18 04:21:43 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-18 04:21:43 +0000
commite1992b6d91e50ab66a903c570e8d9c48f121f34b (patch)
treee0bffe3d06aa60906e366a622649eec86e005dd4 /toke.c
parentee3551f533b296608640db86150c800bdb4e3f24 (diff)
downloadperl-e1992b6d91e50ab66a903c570e8d9c48f121f34b.tar.gz
make "\N{...}" enable utf8-ness correctly
p4raw-id: //depot/perl@5797
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index dcb44541e8..2d96802683 100644
--- a/toke.c
+++ b/toke.c
@@ -1479,6 +1479,8 @@ S_scan_const(pTHX_ char *start)
res = new_constant( Nullch, 0, "charnames",
res, Nullsv, "\\N{...}" );
str = SvPV(res,len);
+ if (len > 1)
+ has_utf = TRUE;
if (len > e - s + 4) {
char *odest = SvPVX(sv);