Package: libtext-iconv-perl
Version: 1.2-3
Severity: important
When convert() is called with substr() as shown below, it return
undefined in the subsequent loop iteration.
$ perl -e 'use Text::Iconv; $v = Text::Iconv->new qw(utf8 utf8);
for (1..5) { defined $v->convert( substr("1", 0, 1) ) ? print "y\n" :
print "n\n"; }'
y
n
n
n
n
This bug doesn't occur when substr() is first assigned to some variable,
$ perl -e 'use Text::Iconv; $v = Text::Iconv->new qw(utf8 utf8);
for (1..5) { defined $v->convert( $a=substr("1", 0, 1) ) ? print "y\n"
: print "n\n"; }'
y
y
y
y
y
-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Kernel: Linux 2.6.10-5-386
Locale: LANG=C, LC_CTYPE=thai
Versions of packages libtext-iconv-perl depends on:
ii libc6 2.3.5-1ubuntu12.5.10.1 GNU C Library: Shared libraries an
ii perl-base [perlap 5.8.4-2ubuntu0.6 The Pathologically Eclectic Rubbis
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]