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
lc() + Latin-1 chars is failing erratically #8253
Comments
From skunk@iskunk.orgI have a script that is processing a list of words in Latin-1 encoding. I had found that certain accented letters in a word were not being If I chomp() the string before lc()ing it, everything works fine. If I I am attaching both the test script and input file; please review the This bug has been reproduced with Perl 5.8.x built from development source. --Daniel -- |
From skunk@iskunk.org |
From skunk@iskunk.org�-Wagen |
From @rgsDaniel Richard G.(via RT) wrote:
This seems to be related to encoding. --- doop.c (rɹvision 6377) |
The RT System itself - Status changed from 'new' to 'open' |
From @rgsRafael Garcia-Suarez wrote:
now commited as #26431. (with prettier comments)
|
@rgs - Status changed from 'open' to 'resolved' |
From skunk@iskunk.orgI've confirmed that the bug no longer occurs when using chop(), or even |
skunk@iskunk.org - Status changed from 'resolved' to 'open' |
From skunk@iskunk.orgI've confirmed that the bug no longer occurs when using chop(), or even However, if we don't modify the string (no chomp/chop/etc.), remove the I'm not familiar with Perl's internals, but if lc() is failing due to its And a quick question: As a workaround for my scripts, is there a concise |
From @rgarciaOn 12/21/05, Daniel Richard G. <skunk@iskunk.org> wrote:
Well, my understanding is that it's the documented behaviour if you |
From skunk@iskunk.org
I can add "use locale" to the test script, set LANG=LC_ALL=LC_CTYPE=C, (For my part, I'd prefer to be able to use "no locale" and have lc() |
From @khwilliamsonOn Wed Dec 21 14:49:31 2005, skunk wrote:
Perl 5.12 (unless glitches arise) will be released April 5, 2010. It is This will cause lc() in the scope of the 'use' statement to behave as |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37999 (status was 'resolved')
Searchable as RT37999$
The text was updated successfully, but these errors were encountered: