summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-21 15:19:12 +0100
committerNicholas Clark <nick@ccl4.org>2009-10-21 15:19:12 +0100
commit89655c2e76bb18695d13f2accf9932e415907f92 (patch)
tree3365f205eadf67ac6c06d966b1dbb792184237cc /toke.c
parenta069fd9ed26dbc9a5d8eb94afb3326588c6b5e56 (diff)
downloadperl-89655c2e76bb18695d13f2accf9932e415907f92.tar.gz
S_utf16_textfilter() needs FILTER_DATA() to get the filter's state SV.
aa6dbd607b0a3d8a wrongly assumed that the filter's state SV was the SV passed in as an argument to the filter read function.
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 7ad492fd52..39b2e8af89 100644
--- a/toke.c
+++ b/toke.c
@@ -12776,7 +12776,7 @@ S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen)
dVAR;
const STRLEN old = SvCUR(sv);
const I32 count = FILTER_READ(idx+1, sv, maxlen);
- const bool reverse = IoLINES(sv);
+ const bool reverse = IoLINES(FILTER_DATA(idx));
/* As we're automatically added, at the lowest level, and hence only called
from this file, we can be sure that we're not called in block mode. Hence