summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-07 16:05:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-07 16:05:16 +0000
commit3aa33fe55ba20233f560f0c549294d8e83806012 (patch)
treec1b0f0f2434610012cab3d272fd45f8006b55411 /toke.c
parentdfcb284a2bcae98854733134f50bc110c487b8a3 (diff)
downloadperl-3aa33fe55ba20233f560f0c549294d8e83806012.tar.gz
reverse() and quotemeta() weren't preserving utf8-ness; add tests
p4raw-id: //depot/perl@6087
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 6af744ce54..b7cceddbfb 100644
--- a/toke.c
+++ b/toke.c
@@ -819,7 +819,7 @@ Perl_str_to_version(pTHX_ SV *sv)
NV nshift = 1.0;
STRLEN len;
char *start = SvPVx(sv,len);
- bool utf = SvUTF8(sv);
+ bool utf = SvUTF8(sv) ? TRUE : FALSE;
char *end = start + len;
while (start < end) {
I32 skip;