A locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface.
I used to use the somewhat whimsical en_DK.UTF-8 locale when installing a new system because that would produce (roughly) the locale results I wanted, even though I am not in Denmark.
Measurements metric
Sensible date and time formats, but day and…
When I always try to install new package I get this message:
Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_GB:en",
LC_ALL…
Does it depend on what file system I use? For example, ext2/ext3/ext4 but also what happens when I insert one of those "joliet" CD-ROMs with ISO 9660? I've heard that POSIX contains some sort of spec for the charset encoding of…
I recently updated my Arch Linux server and during that process tmux got updated. I was using tmux while the upgrade was going on and used it afterwards, but all during the same SSH session.
Now, however, whenever I try to issue any tmux command I…
In all shells I am aware of, rm [A-Z]* removes all files that start with an uppercase letter, but with bash this removes all files that start with a letter.
As this problem exists on Linux and Solaris with bash-3 and bash-4, it cannot be a bug…
I've installed Debian 7 i386 on my VPS (OpenVZ). Everything works fine, except locales - any attempt to install anything shows:
[...]
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE =…
Say I have a POSIX shell script that
needs to run on different systems/environments that I do not control, and
needs to remove the decimal separator from a string that is emitted by a program that respects the locale settings.
How can I detect…
Create the following files in a directory.
$ touch .a .b a b A B 你好嗎
My default ls order ignores the presence of leading dots, intermingling them with the other files.
$ ls -Al
total 0
-rw-r--r-- 1 sparhawk sparhawk 0 Jun 8 17:03 a
-rw-r--r-- 1…
Collation order through LC_COLLATE defines not only the sort order of individual characters, but also the meaning of character ranges. Or does it? Consider the following snippet:
unset LANGUAGE LC_ALL
echo B | LC_COLLATE=en_US grep…
For a long period I thought the default behavior of the sort program was using ASCII order. However, when I input the following lines into sort without any arguments:
#
@
I got:
@
#
But according to the ASCII table, # is 35 and @ is 64. Another…
I'm using Arch Linux, and I've followed the directions on the wiki about setting my locale.
Nearly every program that runs complains about the locale - even locale. It looks like this:
% locale
locale: Cannot set LC_ALL to default locale: No such…
I like being able to name files and directories with an underscore prefix if it's something I want to keep separate from other files and directories at the same level. On Windows and Mac, for example, prefixing a file with an underscore sorts it to…
ɛ ("Latin epsilon") is a letter used in certain African languages, usually to represent the vowel sound in English "bed". In Unicode it's encoded as U+025B, very distinct from everyday e.
However, if I sort the following:
eb
ed
ɛa
ɛc
it seems that…