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

4
votes
2answers
84 views

Is it possible to limit the set of English locales on a system?

On Debian and Ubuntu is it possible to limit the locales which have to be configured? I know that /var/lib/locales/supported.d/local and /var/lib/locales/supported.d/en govern which locales are being ...
1
vote
0answers
17 views

Setting the LANG environment variable for xfce

I am on a multi user Debian Stretch system which has en_US.UTF-8 as default locale, but I want de_DE.UTF-8 for my user. I was able to set it for terminals, by adding export LANG=de_DE.UTF-8 to ...
2
votes
1answer
46 views

change locale in script

I made an script that do some math, using bc and printf. It worked well under cygwin which locale is en_US.UTF-8, but when I run it under linux, which locale is en_ES.UTF-8, it fails because it uses ...
1
vote
1answer
746 views

Chromebook Crouton Debian xfce4 - Cannot change locale!

On the system described in the title, I am trying to change my locale to a UTF-8 one, in order to run the program Anki. However it won't let me, the commands locale-reconfigure locale-gen and any ...
5
votes
1answer
940 views

Locale environment variable settings do not take effect

I have a Debian 6 (64-bit) VPS where I cannot seem to get the locale environment variables LANG and LC_* set. (Everything below as root). vps:~# locale -a C POSIX en_US.utf8 nl_NL.utf8 vps:~# locale ...
1
vote
1answer
31 views

Is there a way to change the language of a running program?

I'm trying to change the language of a running program, for example firefox, from the command line. I'm not looking for application specific commands, but for something like: :~$ chglocale $(pidof ...
2
votes
2answers
576 views

Running `build-locale-archive` causes my ssh session to terminate

I had previously asked the question, How do I reduce the size of locale-archive?, and got a great answer to my question, but when I execute build-locale-archive I get disconnected from my RHEL6 host. ...
4
votes
1answer
728 views

How to set LANG in locale, despite it's in /etc/default/locale in ubuntu for unicode support?

I run Ubuntu 12.04, I can't set the locale to en_US.utf8. I set the LANG by configuring /etc/default/locale as described here. $cat /etc/default/locale LANG=en_US.utf8 $locale LANG= LANGUAGE= ...
3
votes
1answer
19 views

Can custom locale spec live under ~/?

I understand that one can put custom locale specs under a system-wide directory (e.g. /usr/share/i18n/locales), but is there a way to configure one's locale to use a spec that lives under ~/? ...
1
vote
0answers
27 views

unixODBC 2.3.0 “_S_create_c_locale name not valid” error

I am attempting to setup HANA Smart Data Access on an SLES 11 sp3 environment. For HANA to communicate with external data sources unixODBC 2.3.0 is used along with Microsoft ODBC Driver 11 for SQL ...
5
votes
3answers
4k views

Can I change the output format of the “last” command to display the year?

I'm trying to find a way to report on the most recent login for all users on my Solaris 10 server. I'm starting with the output of the last command. Using that command, I get output like this: ...
1
vote
1answer
28 views

Can't set the locale (man-db.cron)

Everyday I am receiving an email with the following content /etc/cron.daily/man-db.cron: mandb: can't set the locale; make sure $LC_* and $LANG are correct When I check the results of of ...
3
votes
1answer
82 views

Unexpected sort order in en_US.UTF-8 locale

While trying to answer this question about SQL sorting, I noticed a sort order I did not expect: $ export LC_ALL=en_US.UTF-8 $ echo "T-700A Grouped" > sort.txt $ echo "T-700 AGrouped" >> ...
4
votes
1answer
63 views

How to get this collation in sort?

I need to set up command sort, so it is sorting lines into this order: Akira Kurosawa Al Ernest Garcia Alain Sarde Alan Ladd, Jr. Albert S. Ruddy Alberto Grimaldi Alfred Hitchcock Amanda Plummer ...
0
votes
1answer
38 views

Changing local from en_US.utf8 to en_US in RHEL 7

I'm installing "Red Hat Enterprise Linux 7.2 (Linux version 3.10.0-327.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Oct 29 ...
8
votes
3answers
7k 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 ...
0
votes
1answer
30 views

setuid.today date format changed after FreeBSD 10.2 update

My setuid.today has a different date format than setuid.yesterday: setuid.today (German localization?) 3 Dez setuid.yesterday Dec 3 I'm getting emails with the diff reports every day. I guess ...
0
votes
3answers
43 views

Fonts Not showing Up - Debian 8

Just moved from windows and installed Debian 8, got chrome running When i visited google.co.in the various languages are showing as boxes. Tried dkpg-locale reconfigure noting worked , PS: I am ...
2
votes
1answer
113 views

Linux speak english,hpux italian,why?

I want my system speak italian as possible on hpux,using bash i see help eval eval: eval [arg ...] Esegue argomenti come un comando di shell. Combina gli ARGOMENTI dentro una singola ...
17
votes
4answers
15k 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 ...
7
votes
2answers
45k 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
2answers
37 views

Can't generate en_US.UTF-8 Locale

I've been trying to set my locale to en_US.UTF-8 without any success. Based off of other answers around the internet, I should first generate the locale with sudo locale-gen en_US.UTF-8 And then ...
3
votes
1answer
26 views

Why don't locale variables show up in the output of env or printenv?

The locale command prints a list of environmental variables containing info related to the users locale: $locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" ...
1
vote
1answer
120 views

I broke build-locale-archive how do I rebuild it?

I used the top answer here How do I reduce the size of locale-archive? because I wanted to free up a little space. Now my web server is down and I can't get build-locale-archive working. First error ...
2
votes
2answers
45 views

alphabetical expansion order for *

When I'm using a POSIX compliant shell (es: dash, bash, zsh, ...) can I be sure that * will always expand in alphabetical order (dictated by LC_COLLATE)? example: $ echo 1 > file_a $ echo 2 > ...
4
votes
2answers
153 views

nix package manager: perl warning: Setting locale failed

Whenever I run a command for the nix package manager (e.g. nix-channel --update) I get the following warning: perl: warning: Setting locale failed. perl: warning: Please check that your locale ...
113
votes
3answers
65k 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?
0
votes
1answer
26 views

Non-English letters in html2text?

I'm making a script which uses html2text, however, it can't handle non-English letters. I'd like to use letters such as á, é í, ó ú, æ, ø, ö, ä, ð, þ. It just shows questions marks instead of the ...
2
votes
3answers
317 views

Why are file names surrounded with “â” sign?

After adding alias rm='rm -i' to my ~/.bashrc file (because, when I removed a file, it wasn't asking for confirmation), file names are surrounded with "â" signs as in the example below: rm: cannot ...
1
vote
1answer
23 views

What is wrong with URI handling on Linux Mint?

I'm using Linux Mint 17.2 XFCE. I face very strange problem on my Linux Mint 17.2 XFCE. When I open files, that are located in paths with non-latin names (for example /home/yanpas/Загрузки) I see ...
0
votes
3answers
160 views

How to set English as a default language in Debian?

How can I set English as a default language in Debian ? I've installed Debian in a different language. $ sudo update-locale LANG=en_US.UTF-8 LANGUAGE=en_US update-locale: Error: invalid locale ...
5
votes
2answers
198 views

Language in netstat output

I have a program here, that depends on the output of netstat. More concrete: netstat -apn. Here is an example of a normal output. Proto Recv-Q Send-Q Local Address Foreign Address ...
3
votes
1answer
72 views

Strange default sort behaviour

I have some trouble to understand what is happening here: [guido@localhost 9]$ ls -1 Star\ Wars\ Episode\ * Star Wars Episode II Attack of the Clones.avi Star Wars Episode III Revenge of the Sith.avi ...
6
votes
1answer
46 views

making a new locale file for Linux, and getting it accepted as a standard

I am wanting to set up a new locale for "Indonesian English" (en_ID) for Linux systems. While English is not widely spoken in Indonesia, it is still used widely in business and the professions. I ...
3
votes
1answer
70 views

How to use grep with files in arbitrary encoding, without locale installed and without sudo?

I have utf-8 locale on my computer, and i want to search in KOI8-R encoded files. But i don't have KOI8-R locale installed. And i don't have sudo rights to install this locale. Is it possible to ...
1
vote
2answers
25 views

What's the advantage of locale archives over locale files spread out in directories?

I am quite curious about why locale-archive files are preferred in many Linux distros and what and to which extent its advantage over compiled files for each locale would be.
21
votes
3answers
5k 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 ...
0
votes
0answers
29 views

Polish–Vietnamese mojibake in a .txt file, using LibreOffice, mousepad, and vim

I have a trouble with some .txt file. When I try open it with mousepad, vim or LibreOffice Writer in every case some Polish letters are changing to another, incorrectly (i.e. correct char ś and ć are ...
2
votes
4answers
4k views

I have an environment variable for LANG set in ~/.profile but it is not getting set

I want to set the locale. I have this in my ~/.profile #language export LANG=en_GB.utf8 export TESTING123=en_GB.utf8 But when I type: echo $LANG $TESTING123 I get (LANG not set, but TESTING123 ...
28
votes
6answers
3k views

Why does [A-Z] match lowercase letters in bash?

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 ...
0
votes
0answers
126 views

Arch locale problerms - “Locale not supported”, “cannot set x to default locale”

I'm very new to Arch. My installation went well, but now It seems that I've muddled my locale settings and I don't know how to fix it. I'm from South Africa. I've gone over the wiki and looked for ...
2
votes
1answer
77 views

Wrong order with sort command

How to get sort command working with data separated by "|" (pipe character) ? Consider this sample file called "x" which have two fields: axis-AXIS|OK axis-AXISR|OK axis-AXISD2X|OK axis-AXISA|OK ...
1
vote
1answer
65 views

Why isn't “export” permanently chaning my environment variables?

Running Fedora 20. Trying to permanently set the LANG and LC_TIME variable with "export". When I run it, it works fine and I can see it was changed. When I reboot, it gets changed back. I am doing all ...
2
votes
1answer
128 views

Encoding problem on aix system when logging using log4j2

I am using log4j2 to log message on aix system. In log when I use command less I can see: ...|LU?N ...|NOV�K ...|ZEM�NEK when I copy same file on my ubunty system and use same program I can see: ...
7
votes
2answers
151 views

Sort command inconsistent behavior

I want to sort two files but I cannot get consistent results. It seems there are problems with collation but I cannot understand the reason. In sample files separator is a single space: file1: a b B ...
0
votes
2answers
459 views

Can't install locales [closed]

I'm working under Raspbian (for RaspberryPi): Linux version 3.18.14-v7+ (root@vagrant-ubuntu-trusty-32) (gcc version 4.8.3 20140106 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.01 - ...
1
vote
1answer
49 views

Why isn't `date` respecting my locale?

I am having some issues processing dates, where they are being interpreted in US format (mm-dd) instead of EU/AU format (dd-mm). It looks like date isn't respecting my locale settings, or they are ...
2
votes
0answers
170 views

Change GDM language

I'm using Gnome on Arch Linux and I want to change the language of GDM from English to French. I followed these instructions exactly but it didn't work... Here is my locale: LANG=fr_FR.UTF-8 ...
1
vote
1answer
116 views

What causing locales issue in debian?

My question is not about how to fix it, but about what causing perl warning in debian after doing apt-get install. I found the easiest way to fix this issue is: export LANGUAGE=en_US.UTF-8 export ...
1
vote
0answers
99 views

Unicode emoji not showing up in tcsh prompt

I set my prompt on tcsh 6.18.01 to use some silly emoji characters, but they don't show up. > cat .cshrc set prompt = '\n🔥 [%~]\n%# ' \360\237\224\245 [~] ...