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

1
vote
0answers
21 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
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 ...
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 ...
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
39 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 ...
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
44 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 ...
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
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 ...
1
vote
1answer
124 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 > ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
1answer
129 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: ...
0
votes
3answers
162 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 ...
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
468 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 ...
0
votes
0answers
168 views

Nothing helps Gnome Terminal to not default to ANSI_x3.4-1968

I would really like gnome-terminal to default to a UTF-8 encoding, but whatever I do, I can't get it to do it. I don't have sudo access, so I cannot edit /etc/environment. I'm on a university-managed ...
1
vote
1answer
296 views

Why can't I properly locate Debian 8.1 on my BeagleBone Black?

I was using the BBB (BeagleBone Black) for a while now but with Arch Linux. Now that Debian also supports systemd I decided to give it a try. So I followed this guide and used the eMMC flasher image ...
2
votes
1answer
66 views

View Japanese text in emacs without X11

Is it possible to view Japanese (or more generally, international) fonts in emacs without running X11? If yes, what is the process? Nearly all the references I have found on the internet related to ...
0
votes
1answer
443 views

Add a foreign keyboard layout to Gnome in Debian 8

I would like to add an Italian keyboard layout as an input source, but my system only lists English layouts. I suppose that this is because I didn't select any locale other than English during ...
1
vote
1answer
58 views

What is the difference between locale en_AG and en_AG.utf8?

Running locale -av in the terminal window gives me (only showing first two items of output): locale: en_AG archive: /usr/lib/locale/locale-archive ...
3
votes
3answers
160 views

How to determine if current locale uses UTF-8 encoding?

I would like to determine if the user's locale uses UTF-8 encoding. This seems a little bit ugly: [[ $LANG =~ UTF-8$ ]] && echo "Uses UTF-8 encoding.." is there a more general/portable ...
2
votes
3answers
320 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 ...
2
votes
1answer
23 views

How to (easily) be able to use a new en_** locale?

I want to use an en_IL.UTF-8 locale - but I can't locale-gen it. I can choose this value in /etc/default/locale but that's apparently not enough for all apps. It seems like I need to get locale-gen to ...
0
votes
1answer
47 views

Docker CentOS7 image and locale compilation problems

I'm setting up a Docker image which requires localization support. I also need to patch the pt_BR locale according to comment #21 on this thread. So what I'm basically doing is reinstall glibc to ...
4
votes
2answers
270 views

Man page quotation characters [duplicate]

I've just been looking through a few man pages for a few different commands including grep and ifconfig. I've noticed over a few pages, the content uses a strange syntax to notate what i think are ...
6
votes
1answer
187 views

Change a locale definition (as opposed to a locale setting)

Preliminary remark: This question is not about setting a locale by changing LC_ALL, LC_TIME, LANG, etc., it's rather about changing a locale definition, e.g. in /usr/share/i18n/locales/de_DE, or ...
3
votes
0answers
156 views

Best practice to customize date/time format system-wide?

I'd like to customize exclusively the date and time format for my system, while sticking to the rest of the locale as is. I know that environment variable LC_TIME will make it possible to customize ...
2
votes
1answer
253 views

Why does `date` print date with wrong word order when localized?

I'm using Kubuntu 14.04.2 LTS. I set the locale environment with the following command: export LANG=ru_RU.utf8 LANGUAGE=ru_RU.utf8 LC_ALL=ru_RU.utf8 so that locale now says all entries are ...
2
votes
1answer
46 views

Cyrillic file names broken after upgrading Slackware

After upgrading glibc and some other libraries on Slackware instead of cyrillic names I see the garbage: | Was before | Is now | |------------+------------------| | Вождение | ...
1
vote
0answers
70 views

Debian applications in a different language and unable to change

I recently had to reinstall GNOME on my Debian7 system, the reason being there was a problem with the older version. Unfortunately, probably since I am in Belgium, it has installed part French, part ...