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.

learn more… | top users | synonyms

26
votes
3answers
12k views

What does “LC_ALL=C” do?

What does the C value for LC_ALL do in Unix-like systems? I know that it forces the same locale for all aspects but what does C do?
2
votes
2answers
652 views

Some UTF-8 characters not being recognized by grep or sed

Trying to determine all characters in a file. The file sample consists of: a eɪ abandon əˈbændən ability əˈbɪləti able ˈeɪbəl able ˈeɪbl abortion əˈbɔrʃən abortion əˈbɔrʃn about əˈbaʊt above əˈbʌv ...
2
votes
2answers
921 views

How can I examine the contents of /etc/localtime?

What command(s) can I use to examine the contents of the locale files, such as /etc/locale or the files under /usr/share/zoneinfo/*?
1
vote
1answer
242 views

Non-ASCII characters handled incorrectly on command line

I have a problem with non-ASCII characters in the Terminal on Mac. If I write: echo ÆØÅ Then press Enter, Arrow Up, Arrow Left, so the cursor is between the Ø and the Å, then write X, then the Å is ...
2
votes
1answer
78 views

Set a different input method for each app window

Is there a way in KDE to set a different input method for each app window? For example, for coding I use one input method (english), but at the same time I chat in Skype window using my native ...
5
votes
2answers
632 views

How to convert UTF-8 txt files to all uppercase in bash?

I have some UTF-8 .txt files which I would like to convert to all uppercase. If it was just ASCII, I could use: tr [:lower:] [:upper:] But since I'm working with diacritics and stuff, it doesn't ...
0
votes
1answer
191 views

Wrong language setting in Arch KDE

I've installed KDE on Arch Linux, everything is ok, except the language, infact after that I've installed italian language and setted that as preferred, the texts of tabs, settings and so on is mixed ...
1
vote
1answer
173 views

Correct diacritics in a mysql dump on CentOS

On my CentOS server, I have got a dump file of a mysql table which contains special czech characters in it (e.g. á, é, č, ž). When I view the file using cat, the special characters are broken (e.g. ĂĄ ...
1
vote
0answers
31 views

Characters not defined into iso14651_t1_pinyin are not sorted properly

when I try to sort characters not defined in iso14651_t1_pinyin, no sort happens, they are simply left in place. I would expect to see them sorted according to their codepoint. Is there a way I can ...
2
votes
0answers
169 views

locales: modify default time format

I need to change the default time format on my Debian Wheezy system. I am following this howto. I have modified the corresponding lines in /usr/share/i18n/locales/en_US d_t_fmt ...
0
votes
1answer
2k views

Linux Mint 14 system language turns into chinese. How can I switch back to English?

Today for testing purpose I installed KDE alongside Cinnamon in Linux Mint 14. Unfortunately, after that my system language switch to Chinese!!! All the menus and notification is in Chinese now!! How ...
3
votes
3answers
12k views

How to change locale environment variable?

I have generated en_US.utf8, et_EE.iso88591 and ru_RU.utf8 localisation files. Now if I try to change any of the locale variables to a ru_RU.utf8 or en_US.utf8, then this does not have any effect: # ...
1
vote
1answer
2k views

Language Support on Linux Mint Debian Edition

After a new install of Linux Mint Debian Edition I have some words unlocalized to my native language: most in Czech, some words in English. Whenever I've installed Ubuntu/Linux Mint this always ...
2
votes
1answer
576 views

Console font - how to show accents?

Arch linux on VirtualBox. My problem is the console (not X) does not show accents like "á ã ç". The problem is showing, not typing. I have a text file with these accents and when I use "cat" the ...
3
votes
1answer
641 views

Encoding of a zip file

When I extract some file (mp3) with japanese or korean characters within its filename on Windows, they appear normally, but when I extract it on Linux (Ubuntu/Mint) they appear as something like this ...
2
votes
1answer
120 views

How would a script know when running locale-gen is necessary?

One of the basic steps in setting up a new system is getting the right glibc locale files generated. At least in ArchLinux and Gentoo, one is expected to do this step by hand. I am trying to setup a ...
4
votes
2answers
436 views

What would break if the C locale was UTF-8 instead of ASCII?

The C locale is defined to use the ASCII charset and POSIX does not provide a way to use a charset without changing the locale as well. What would happen if the encoding of C were switched to UTF-8 ...
2
votes
1answer
228 views

Mint: startx from tty loads X in chinese

OS: Linux Mint 14 Tty: tty/6 I am trying to start X using startx from tty/6. I do not have a .xinitrc in my home directory. X gets loaded but it loads everything in chinese. I am not sure where the ...
1
vote
1answer
428 views

How do I make mutt show Cyrillic characters on OpenBSD?

I'm using mutt-1.5.21p0v0 to read my mail on OpenBSD 5.2 every now and then. Why does mutt show question marks instead of Cyrillic characters when I open standards-compliant email messages in ...
1
vote
1answer
37 views

Detecting which font should be used

I am wondering how a system knows which font should be used for an output. E.g. recently I was setting up my Debian for Japanese support, so first: installed Japanese locale, then a package with ...
4
votes
1answer
212 views

Why is uniq ignoring Unicode and lines with a single letter?

I'm trying to combine both the American and British dictionaries into one large dictionaries, and I'm trying to remove all the duplicates from the superset, but it seems that uniq is not outputting ...
3
votes
4answers
509 views

Qt programs have Greek fonts on one Debian account (QtConfig, Virtualbox and VLC)

Update: I have created a new user via adduser and Virtualbox fonts are OK there. This does not solve my problem, however... I still don't know what is going on and I'd like my own user account to have ...
37
votes
2answers
1k views

Why is there no “Euro English” locale?

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 ...
3
votes
1answer
1k views

How can I change locale/encoding to avoid getting weird characters in terminal?

I have installed tree on my ubuntu box, when i connect to it from Putty and I launch tree i get this : $ tree âââ html.vim -> xml.vim âââ js.vim -> xml.vim âââ xml.vim instead of this : $ ...
3
votes
1answer
282 views

Encoding Problem: Qt Apps delete all non ASCII chars from files

Qt applications are deleting non-latin characters from ISO-8859 encoded files on my Gentoo system. Actually I'm trying to merge two German files with KDiff3 and P4Merge (making "Whlen" out of ...
2
votes
1answer
629 views

How to get rid of special characters in the output of make on centos

I installed centos6.3. When I run gcc, it outputs errors but the function names are surrounded by special characters like this ‘setup_connection’: This same is repeated with variable names. I ...
6
votes
1answer
505 views

Unzipping certain archives works on Windows but not on Linux

I've asked a few people and just thought about asking it here. We get sent files from an international company for design work in a zip format. Well when I run a script to unzip the files in the ...
4
votes
1answer
256 views

man gives the error about locale

I have $ locale LANG=en_GB.UTF-8 LC_CTYPE=ru_RU.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LC_COLLATE=ru_RU.UTF-8 LC_MONETARY=ru_RU.UTF-8 LC_MESSAGES=en_GB.UTF-8 LC_PAPER=ru_RU.UTF-8 ...
5
votes
1answer
164 views

Alphabetizing names in `ls` alias with .files not intermingled

I am currently using the following ls alias: alias ls='ls -alhGkpsq --color=auto'. This results in following directory listing. [03:35] bryson@brys ~ :$ ls total 48K 4.0K drwx------ 4 bryson 4.0K ...
2
votes
0answers
538 views

Problems changing PS1 to use special character

I'm trying to get my zsh to look something like this: https://bbs.archlinux.org/viewtopic.php?pid=1068202#p1068202. Whenever I print the └───╼ part of the PS1 to my terminal (or in the .zshrc for ...
2
votes
1answer
316 views

zsh broke compose key and special chars

I thought I'd switch to zsh, so I did just that with chsh -s /usr/bin/zsh user, unfortunately, it broke my compose key (unresponsive both in the console and in an X terminal); also, when I read email ...
6
votes
1answer
155 views

locale definition with French republican calendar

I wonder if it is possible to create a locale definition that would make the C library format the dates according to the French republican calendar. I expect then, for example, run `date' and get ...
8
votes
2answers
738 views

Why are wc -m and wc -c different?

As a C programmer, I was surprised to see that wc -c (which count the number of bytes), and wc -m (which counts the number of characters) output very different results for a long, text file of mine. I ...
1
vote
0answers
210 views

How can I configure Wine's default paper settings?

I'm having trouble with the locale settings in my Microsoft Office Wine bottle/prefix. When I created it, I had followed the Gentoo Localization Guide's suggestion to not set LC_ALL. However, when I ...
7
votes
2answers
3k views

Effect of $LANG on terminal

I'm trying to learn how the $LANG variable behaves with gnome-terminal (and its character encoding preference option). I've been using iso8859-1 (latin1) as my main character-set and all my filenames ...
4
votes
3answers
334 views

Use command grep and locate

How I can make the grep command locate certain words in the files specified by the routes found by the locate command? locate my.cnf | grep user (I want that grep command search the word "user" ...
1
vote
3answers
3k views

Chinese input in Linux Mint 13

I started to use Linux Mint 13 MATE a few days ago. What frustrates me most is that I can't found anywhere to change my input language. In Windows, it is easy, just Ctrl+Shift. How can I configure the ...
8
votes
2answers
1k views

Output ls -l size field with digits grouped by thousands?

It is possible to make ls -l output the size field with digits grouped by thousands? If so, how? For instance: $ ls -l -rw-rw---- 1 dahl dahl 43,210,052 2012-01-01 21:52 test.py (Note the commas ...
5
votes
2answers
2k views

What's the default order of linux sort?

For a long period I think the default behavior of sort program is using ASCII. However, when I input the following lines into sort without any arguments: # @ I got: @ # But according to the ...
3
votes
3answers
2k views

localization of man pages on Linux (Ubuntu)

Is there an option to output a manual page in a different language? I don't want to change the computer language completely, but only specific manual pages. For example $ man -English man Man is a ...
14
votes
4answers
9k views

Why is almost every program complaining about my locale?

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 ...
1
vote
1answer
170 views

How do I localize man pages for chinese?

Doing the prerequisite google search didn't turn up anything: I'm looking for a way to install and use localized chinese versions of the man pages (assuming there is some localized package somewhere). ...
8
votes
4answers
4k views

How do I make ls sort underscore characters first?

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, ...
2
votes
1answer
251 views

How to create a custom region in gnome3?

Gnome3 doesn't include my region. I need: calendar week to start on monday british-english spelling 8.5x11 as the default document size for printing celsius for temperatures miles for distances ...
2
votes
1answer
190 views

Should 'LC_ALL=fr_FR.UTF-8 date +%x' give consistent results across machines?

The %x format specifier to the date utility should, according to the man page, use the locale specific date format. However, when I specify the same installed locale and try this on two different ...
2
votes
2answers
969 views

How to specify printer paper size in mm instead of inches?

In eog (Eye of Gnome) 2.30.2, I found no way to specify size unit in mm in Print... and Page Setup dialogs: So I have to convert these sizes in inches to sizes in mm. I'm using CUPS as the print ...
14
votes
3answers
3k views

Understanding Unix file name encoding

I have a hard time understanding how the file name encoding works. On unix.SE I find contradicting explanations. File names are stored as characters To quote another answer: Several questions about ...
5
votes
3answers
4k views

How to fix Russian letters in a Wine application when adjusting LANG does not help?

An application with a Russian UI shows question marks instead the most of its text (some elements are rendered ok though). The system locale is English (en_US, en_IE), I've tried Ubuntu ant XUbuntu ...
2
votes
2answers
3k views

How do I install the cs_CZ.ISO8859-2 locale on Ubuntu 12.04

I need the cs_CZ.ISO8859-2 locale to exist on Ubuntu 12.04 so a specific unit test can pass. The test makes the following call: std::locale("cs_CZ.ISO8859-2") On my OS X Lion install, this locale ...
2
votes
0answers
293 views

How can I configure Yast to switch languages completely?

I have an installation of openSUSE 11.4 which was installed in German. I started Yast2 (which displayed in German, like "Netzwerkdienste") and switched the language to English under "System" -> ...