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

8
votes
2answers
2k 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
3answers
2k views

What's the default order of Linux sort?

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 ...
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 ...
15
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
189 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). ...
9
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
260 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
204 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
1k 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
5k 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
313 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" -> ...
5
votes
1answer
1k views

Get “date” to understand a timestamp phrase of a different language

My web-scraping scripts have long enjoyed using date -d to read in human-formatted time and date stamps like "March 11, 1999" and convert to any other format I need via the -s parameter. How might I ...
3
votes
2answers
4k views

terminal: non-english characters

I used to be able to copy&paste (or type if I load respective keyboard layout) any kind of characters (eg. é ö ñ ß و 好) in my console/terminal. Now I bought a new computer and it does not work ...
1
vote
1answer
2k views

Setting locale for user

I'd like to set a locale for my user different than system locale. By putting export LANG=en_US.utf8 in .bashrc I could do that for the shells, but still it's not working for applications not started ...
2
votes
1answer
8k views

How to change Firefox language?

I have a Scientific Linux on my notebook (installed with German language). I installed Firefox with a simple "yum install firefox". But I need Firefox with Hungarian language. How can I configure ...
1
vote
1answer
2k views

How to set up FreeBSD for my region?

im currently installing FreeBSD. Im at the "Time Zone Selector" screen. I don't know what should i choose. Normally, since i live in Quebec (Canada), i choose Eastern time GMT -5, but there is no such ...
1
vote
1answer
193 views

lpstat and localization under Mac OS X

How to force "lpstat" utility to show output messages in English under localized Mac OS X (version 10.6)? Example: lpstat -v Shows in Dutch: apparaat voor Samsung_SCX_4300_Series: usb://..... I ...
5
votes
1answer
2k views

How to use grep/ack with files in arbitrary encoding?

On my Linux desktop I have a UTF-8 locale. When I try to search some KOI8-R encoded files with grep (ack), it fails. If I manually encode the pattern into KOI8-R and pass that as an argument, it ...
7
votes
1answer
510 views

Why is bash extended-globbing variable substitution acting at the byte level?

I thought that bash variable substitution and globbing worked at character resolution, so I was rather surprised to see it acting at the byte level. Everything in my locale is en_AU.UTF-8 When ...
2
votes
2answers
3k views

Wheezy locales problem - gnome-control-center region crashes with segfault

In the last couple of days my locales have a serious issue. I normally am "en_GB.UTF-8". Suddenly when running apt, error messages are appearing saying Traceback (most recent call last): File ...
0
votes
1answer
7k views

centos locale utf-8

This is my linux box: CentOS Linux release 6.0 (Final) x86_64 Using a text editor (vi, or pico...) I see strange characters for accented letters (è, ì, à, ù) This is my locale: LANG=en_US.UTF-8 ...
1
vote
0answers
106 views

Use the system Compose database in Gtk applications [duplicate]

I'm using a X server which doesn't implement the XKB extension (it is VNC, but I don't think it matters, my vncviewer is running on Windows XP, I don't think it matters either). I've set up a ...
2
votes
2answers
1k views

Unable to type some special characters in vi on a debian

on a machine I have access to, when I type "€" in vi, "~B� " is displayed instead, and when I type "£", "£ " What can cause this strange behavior, how can I fix it? Typing it in the console gives even ...
2
votes
1answer
135 views

how to export zh_CN.utf8 in Arch liveCD environment?

After i typed locale -a it showed only c, en_US.utf8, POSIX, then how to export zh_CN.utf8? Cause I've to use a software, which uses zh_CN, to connect the Internet during installation progress... Any ...
5
votes
1answer
2k views

How to get gnome-terminal in English?

Is it possible to select a different language for a specific application? On some systems I run Fedora15/Gnome in German, but want to use the Terminal in English including for the simple prompt ...
4
votes
2answers
1k views

Where has my `uniq` or `sort -u` line gone, with some unicode characters

What is going on in the following code snippet? I'm not getting my expected output. I'd think it was a bug, but it happens for 2 different programs (uniq and sort), so I suspect it is something ...
15
votes
2answers
3k views

Does (should) LC_COLLATE affect character ranges?

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 ...
7
votes
2answers
5k views

set LC_* but not LC_ALL

I'd like to have a German (Austria) locale (A4 paper size, 24 hour time, yyyy-mm-dd), but an English-language user interface (I don't like poor translations). I figured that the correct way to achieve ...
5
votes
1answer
2k views

How do I configure setfont and loadkeys properly?

I'm installing LFS and I'm struggling with this section. My locale is sv_SE.UTF-8 and I have a Swedish keyboard. So I suppose I should enable unicode and that the keymap is sv-latin1: cat > ...
5
votes
1answer
560 views

Dead keys not working in Java Swing applications

I'm currently using Ubuntu 10.10 and Netbeans 7.0 and I can't type accented letters with dead keys any more. It's not a version specific problem seems it's related with Swing since I've got the same ...
10
votes
5answers
2k views

Weird Stuff in Terminal When I Hit Tab

For some reason, today, everytime I hit tab in the terminal this shows up: cat bash: warning: setlocale: LC_CTYPE: cannot change locale (en_CA) Display all 150 possibilities? (y or n) This ...
3
votes
1answer
794 views

What is the relevance of 'en_AU' in 'LC_CTYPE'? and what is `locale LC_CTYPE` output all about?

First off: Although I can understand the relevance of geographic-region detail for LC_TIME, LC_NUMERIC, and most other LC_* vars, I don't quite see how 'en_AU' relates to LC_CTYPE... Isn't UTF-8 (and ...
3
votes
1answer
243 views

How to control the list of locales which are generated by APT?

Each time I install or operate in other means l10n-related packages, the APT system "rebuilds" a lot of English locales, which takes considerable time. Look at the APT log: Configuring ...
9
votes
2answers
13k views

ssh and character encoding

When I ssh into my VPS, I have irssi running in screen. When someone sends a unicode character (such as © or €), irssi displays garbage when I use it via the screen in a ssh session. If I connect to ...
18
votes
3answers
11k views

What charset encoding is used for filenames and paths on Linux?

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 ...
6
votes
5answers
951 views

Why does locale es_MX work but not es?

Wikipedia entry for GNU gettext shows an example where the locale is just the lanuage, "fr". Whereas the 'i18n gettext() “hello world” example' in SO has the locale value with both the language and ...
7
votes
2answers
420 views

Set the language for a single program execution

Complete C++ i18n gettext() “hello world” example. sets the LANG environment variable using export before executing the program (Linux): export LANG=es_MX.utf8 ./hellogt Is there a way to set the ...