diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-21 15:19:12 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-21 15:19:12 +0100 |
commit | 89655c2e76bb18695d13f2accf9932e415907f92 (patch) | |
tree | 3365f205eadf67ac6c06d966b1dbb792184237cc /toke.c | |
parent | a069fd9ed26dbc9a5d8eb94afb3326588c6b5e56 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |