5 kx #!/bin/sh
5 kx # Set the system locale. (no, we don't have a menu for this ;-)
5 kx # For a list of locales which are supported by this machine, type:
5 kx # locale -a
5 kx
5 kx # en_US is the default locale:
5 kx export LANG=en_US.utf8
5 kx
5 kx # 'C' is the UNIX default, which is 127-bit ASCII with a charmap
5 kx # setting of ANSI_X3.4-1968. These days, it's better to use en_US
5 kx # or another modern $LANG setting to support extended character sets.
5 kx #export LANG=C
5 kx
5 kx # There is also support for UTF-8 locales, but be aware that
5 kx # some programs are not yet able to handle UTF-8 and will fail to
5 kx # run properly. In those cases, you can set LANG=C before
5 kx # starting them. Still, I'd avoid UTF unless you actually need it.
5 kx #export LANG=en_US.UTF-8
5 kx
5 kx # Another option for en_US:
5 kx #export LANG=en_US.ISO8859-1
5 kx
5 kx # One side effect of the newer locales is that the sort order
5 kx # is no longer according to ASCII values, so the sort order will
5 kx # change in many places. Since this isn't usually expected and
5 kx # can break scripts, we'll stick with traditional ASCII sorting.
5 kx # If you'd prefer the sort algorithm that goes with your $LANG
5 kx # setting, comment this out.
5 kx export LC_COLLATE=C
5 kx
5 kx # End of /etc/profile.d/lang.sh