diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-04 18:06:21 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-04 18:06:21 +0000 |
commit | 7c95f590e1d3e90413f423893f54acc0b5dc228c (patch) | |
tree | 130d587668559af22bca1d030fd7f501aafe78e2 /toke.c | |
parent | 94472101973f2669f5034174c504c45df6a04c85 (diff) | |
download | perl-7c95f590e1d3e90413f423893f54acc0b5dc228c.tar.gz |
I thought I tested the #9014.
p4raw-id: //depot/perl@9017
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1539,9 +1539,9 @@ S_scan_const(pTHX_ char *start) res = newSVpvn(s, (uv >> 8) + 1); /* filler */ str = (char *)uv_to_utf8((U8*)SvPVX(res), uv); SvCUR_set(res, str - SvPVX(res)); - *str = 0; + *str = '\0'; if (uv > 0x7f) - has_utf8 = TRUE; + SvUTF8_on(res); } else { yyerror("Illegal hexadecimal code on \\N{U+...}"); |