summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-22 09:26:58 +0100
committerNicholas Clark <nick@ccl4.org>2009-10-22 11:56:20 +0100
commit9fb03e618192b6b5d49274cc64422acee51fe198 (patch)
tree03041992710e692feaeceeae038220ddf47414c4
parent1bb4187059cebfeb80fd44d4a65c5daa04be9ff4 (diff)
downloadperl-9fb03e618192b6b5d49274cc64422acee51fe198.tar.gz
Remove the "hack" that removes SVt_UTF8 in the UTF16 filter, by fixing t/TEST
Given that t/TEST already had code to add -I../lib when testing UTF-8 with -utf8, do likewise for testing UTF-16 with -utf16.
-rwxr-xr-xt/TEST2
-rw-r--r--toke.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/t/TEST b/t/TEST
index 10a0e85c73..4dee63672d 100755
--- a/t/TEST
+++ b/t/TEST
@@ -246,7 +246,7 @@ sub _scan_test {
}
}
- my $utf8 = $::with_utf8 ? "-I$lib -Mutf8" : '';
+ my $utf8 = ($::with_utf8 || $::with_utf16) ? "-I$lib -Mutf8" : '';
my %options = (
perl => $perl,
diff --git a/toke.c b/toke.c
index 7edccf4021..72e3e36d97 100644
--- a/toke.c
+++ b/toke.c
@@ -12817,10 +12817,6 @@ S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen)
*end = '\0';
}
SvCUR_set(utf16_buffer, 0);
- /* This is to be bug-for-bug faithful with the implementation we've just
- replaced. Without this, ./TEST -utf16 base/lex.t fails, attempting to
- load utf8.pm */
- SvUTF8_off(sv);
DEBUG_P({sv_dump(sv);});
return SvCUR(sv);
}