Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perllocale weirdness, bug, or...?

by Krambambuli (Deacon)
on Oct 20, 2010 at 21:31 UTC ( #866412=note: print w/ replies, xml ) Need Help??


in reply to perllocale weirdness, bug, or...?

Thanks - I've done this already, but it's not explaining the supposed non-sensical ordering I see.

I've made some progress in the meantime however - it seems a problem with how exactly collate is done when LC_COLLATE = en_US.UTF-8 and not a Perl problem. But I'm still have to understand how it comes that a sort with this collation gives
_
2
a
a2
a_2
a_2.
a2.

instead of what I would feel as 'logical' to be
_
2
a
a_2
a_2.
a2
a2.
---
(Update): sorry, misplaced this answer, it should have been a reply to thundergnat's note.


Comment on Re: perllocale weirdness, bug, or...?
Re^2: perllocale weirdness, bug, or...?
by aquarium (Curate) on Oct 20, 2010 at 23:06 UTC
    if using unicode (utf-8) as locale, also make sure your data, including input and output streams match. as you might still be experiencing certain "bits" in the whole setup not being utf-8. also check your locale settings at system/root level, and compare with the logged in user. i've seen weirdness come from that. also make sure there's no special other perl only system variables set, that could interfere.
    the hardest line to type correctly is: stty erase ^H

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://866412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-08-30 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls