News for hackers. Stuff that matters.
Re:The Art of Command Line by thristian on Monday June 15, 2015 @06:59PM (#9722721)
Some environments support a locale named "C.UTF-8" - with the same familiar sorting and formatting rules as the C locale, but with proper UTF-8 support.
Re:The Art of Command Line by zalzal on Monday June 15, 2015 @07:52PM (#9722958)
Using C locale is useful when processing very large data files in a shell, e.g. on a server. For example, uniquing or set difference will work many times faster (and doesn't require the slow/fancy collation calculations). But yes, it's a good point, of course it shouldn't be used on your desktop globally or apps will break. I'll clarify that.
Re:The Art of Command Line by cmrx64 on Monday June 15, 2015 @08:07PM (#9723038)
Setting LC_COLLATE=C and leaving the rest to a proper locale can often win you what you want without losing much.