dougo: (Default)
dougo ([personal profile] dougo) wrote2004-05-26 11:33 am

Debian Linux question

Is it my imagination, or did /bin/ls used to sort by case? Now it puts, for example, "README" down among the "r"s instead of before all lowercase filenames. When did this change? Is this a concession to Windows case-insensitivity or something?

[identity profile] ghudson.livejournal.com 2004-05-26 04:30 pm (UTC)(link)
It's more common to have LANG set than LC_ALL. As I understand it, LC_ALL overrides {LC_COLLATE/LC_TIME/etc.} which overrides LANG, so you'd only set LC_ALL if, say, you're a script and want predictable output behavior.

(Unix locale stuff is very confusing and poorly documented in my experience. Fortunately, the average user only has to interact with it through a language-selection screen at system install time.)