New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text::Tabs fails to expand correctly in the presence of UTF8 characters #8853
Comments
From rnorwood@redhat.comCreated by rnorwood@redhat.comThis is a bug report for perl from rnorwood@redhat.com, ----------------------------------------------------------------- perl -CS -MText::Tabs -e 'print expand("\taa\t.\n\t\x{010a}\x{010a}\t."), "\n"' aa . My text editor/mailer may munge the UTF8 improperly - essentially the This appears to be also broken in 5.9.4. The bug is in Red Hat's bugzilla as: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217833 Incidentally, the problem appears to stem from the pos() function not Perl Info
|
From @smpetersOn Thu Mar 29 09:16:21 2007, rnorwood wrote:
With bleadperl, I see [steve@kirk perl-current]$ ./perl -CS -Ilib -MText::Tabs -e 'print So, I'm thinking this problem has been resolved. Thanks! |
The RT System itself - Status changed from 'new' to 'open' |
@smpeters - Status changed from 'open' to 'resolved' |
From rnorwood@redhat.com"Steve Peters via RT" <perlbug-followup@perl.org> writes:
If the tabs were expanding properly, wouldn't the period characters be -RN -- "The Sage does nothing, yet nothing remains undone." |
From @JuerdRobin Norwood skribis 2007-07-25 15:09 (-0400):
I think you mean Unicode characters, not UTF8 characters. Unicode characters can be 2 columns wide, but U+010A is not. foobar juerd waalboer: perl hacker <juerd@juerd.nl> <http://juerd.nl/sig> |
From @demerphqOn 7/25/07, Robin Norwood <rnorwood@redhat.com> wrote:
I agree its a bug, you can reduce it down to: ./perl -e'chop($ustr="\taa\t..\t\x{100}");for my $s The output i get from above is: 0 2 4 All three should be 0 3 6. Apparently pos isnt being correctly set, (possible off by one error?), Cheers, -- |
From rnorwood@redhat.comdemerphq <demerphq@gmail.com> writes:
Yeah - when I looked at it a couple of months ago it appeared to be Note that at least in 5.8.8's Text::Tabs, there's an older version of Thanks, -RN -- "The Sage does nothing, yet nothing remains undone." |
From mmaslano@redhat.comI'm sorry, but this problem is still there. I tested with perl-5.10.0 |
Migrated from rt.perl.org#42167 (status was 'resolved')
Searchable as RT42167$
The text was updated successfully, but these errors were encountered: