4 ms·
I have the following set in my .cshrc: setenv LC_ALL en_US.UTF-8 setenv LC_COLLATE C # use the ASCII sort order What have I broken, and how ba
by xenophonf 11y ago
I have the following set in my .cshrc:
setenv LC_ALL en_US.UTF-8
setenv LC_COLLATE C # use the ASCII sort order
What have I broken, and how badly?
- scrollaway 11y agoYou're not breaking anything on a technical level with that. Be wary of anything that deals with string or character comparison however (including regexes).
- lejoko 11y agoThis won't work because LC_ALL overrides LC_COLLATE (and all the LC_* variables actually). It's LANG that you want to use. LANG is overriden by LC_* which are in turn overriden by LC_ALL. Don't use LC_ALL in your config files, use it only for one shot command lines or in scripts that need to be sure of the environment they run in.
- xenophonf 11y agoThank you both for the clue. I used to have LANG set, but I'm just going to unset them all. I think I put them in originally to change how directory listings got sorted, but I'm not sure I care any more. :)