Closed GoogleCodeExporter closed 9 years ago
use encoding 'iso-2022-jp';
my $first = chr(12353);
print "ok - same chr\n" if $first eq "^[$B$!^[(B";
print "ok - same ord\n" if ord($first) eq ord("^[$B$!^[(B");
print "ok - regexp using variable\n" if $first =~ m/^$first/;
print "ok - regexp using special characters\n" if $first =~ m/^^[$B$!^[(B/;
exit;
Original comment by nicolas....@gmail.com
on 7 Jul 2014 at 9:12
uncompiled:
ok - same chr
ok - same ord
ok - regexp using variable
ok - regexp using special character
compiled:
ok - same chr
ok - same ord
ok - regexp using variable
Original comment by nicolas....@gmail.com
on 7 Jul 2014 at 9:13
here is the file used for that test
Original comment by nicolas....@gmail.com
on 7 Jul 2014 at 9:17
Attachments:
> perl jp.t
ok - same chr
ok - same ord
ok - regexp using variable
ok - regexp using special characters
vs
> perlcc -r jp.t
ok - same chr
ok - same ord
ok - regexp using variable
Original comment by nicolas....@gmail.com
on 7 Jul 2014 at 9:18
wontfix. use encoding 'iso-2022-jp'; is deprecated
perl5.14.4d-nt: B.xs:1742: XS_B__GV_NAME: Assertion `((((_gvname_hek)->sv_flags
& (0x00004000|0x00008000)) == 0x00008000) && (((svtype)((_gvname_hek)->sv_flags
& 0xff)) == SVt_PVGV || ((svtype)((_gvname_hek)->sv_flags & 0xff)) ==
SVt_PVLV))' failed.
Aborted
Original comment by reini.urban
on 7 Jul 2014 at 10:37
Original issue reported on code.google.com by
todd.e.rinaldo
on 7 Jul 2014 at 8:43