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
1answer
16 views

Solaris 11 nlsadm list-timezone issue

nlsadm list-timezone iconv_open(wchar_t, UTF-8) failed for 'en_GB.ISO8859-15' locale Invalid argument What is the cause for this error and is there a workaround?
0
votes
0answers
5 views

localedef normalizing (?) “UTF-8” to “utf8” [duplicate]

I am on Arch Linux with the latest glibc. It seems that localedef is normalizing the string "UTF-8" to "utf8" in locale names: $ sudo localedef -i en_US -f UTF-8 test.UTF-8 $ localedef --list en_US....
28
votes
7answers
4k 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 ...
4
votes
0answers
36 views

Mixed languages in bash after OS X update to El Capitan

In my user, which has admin privileges, I have several languages enabled, and English (U.S.) is the 'Primary' language: After updating to El Capitan (10.11), I get mixed languages in bash: $ svn ...
1
vote
1answer
83 views

No support for locale: en_US.utf8

I am on Linux Mint 17.3. I saw this in the syslog. Processing triggers for initramfs-tools (0.103ubuntu4.3) ... Apr 9 12:01:47 vb-nb-mint updates: update-initramfs: Generating /boot/initrd.img-3.19....
0
votes
1answer
27 views

What is VC keymap?

Here is what I get when executing localectl status: $ localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: us-acentos X11 Layout: us X11 Model: pc104 X11 Variant: ...
1
vote
1answer
947 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 ...
4
votes
1answer
934 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= ...
1
vote
0answers
10 views

Setting locale in a systemd-nspawn container (debian jessie)

Trying to get powerline/airline symbols to show in vim running in a Debian container created with sudo systemd-nspawn -D ~/debian-tree/ on a Fedora host. Right now it just shows question marks in ...
3
votes
1answer
50 views

How to find system language within Python?

Is there any way, in Python 3, to find out the language used by the system? Even a tricky one though, like: reading from a file in a sneaky directory, and finding the string 'ENG' or 'FRE' within the ...
1
vote
1answer
140 views

“-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)”

Running a brand new Ubuntu 16.04 and a Debian 8 server. Trying to connect via ssh and getting the following strange terminal output. I refer to the rectangles with the numbers in it. The problem ...
4
votes
1answer
2k views

Consequences of setting up POSIX locales

We are using several Ubuntu servers having English as working language; however having en_US locale set in machines we encounter problems with apt-cacher-ng downloading translation files. One solution ...
6
votes
1answer
1k 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 ...
0
votes
1answer
15 views

Could not set locale for common user

I'm using i3wm, after an update, I run into a locale problem that doesn't let me run i3status correctly. I had a major advance on this issue. Reconfigure locale on /etc/locale.gen and also on /etc/...
1
vote
0answers
43 views

Why does perl complain about locales? [duplicate]

This thread is not a duplicate to locale not found/setting locale failed - what should I do? because the file /etc/locale.gen has uncommented the line en_US.UTF-8 UTF-8 which should sufficient no ...
1
vote
1answer
498 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 ...
0
votes
0answers
26 views

How can I disable uim without uninstalling it?

I took me a while to install and configure uim https://code.google.com/archive/p/uim/ on Arch Linux and install other japanese fonts because I needed the support for the japanese language and locale. ...
2
votes
1answer
95 views

Can't copy or view files with hangul on HFS+

I'm trying to copy a directory of Korean and Japanese music on a Debian Jessie box. The source file system is HFS+J (Mavericks vintage) from a dead Mac, mounted with hfstools: # mount -t hfsplus -o ...
12
votes
3answers
656 views

How can I make “ls” show dotfiles first while staying case-insensitive?

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-- ...
18
votes
5answers
17k 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 ...
4
votes
3answers
1k views

Updated my arch linux server and now I get tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

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, ...
18
votes
2answers
28k views

locale not found/setting locale failed - what should I do?

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

When I'm typing a text in English, it gets underlined and behaves bizarre

I have russian and english US locales. When I'm typing a text in English, it gets underlined until I press whitespace or some other special keys. When it's underlined, it's kind of invisible to the ...
0
votes
1answer
331 views

What are these strange characters in wifi-menu and alsamixer?

I have a fresh install of Arch. When I run wifi-menu or alsamixer, both of which I think use dialog, the display in the shell is not correct. The border, for example, is drawn with the wrong ...
10
votes
1answer
9k views

How do I reduce the size of locale-archive?

I have a need to reduce the size of the locale-archive file on some of my RHEL6 systems. Here is that file on my system: [root@-dev-007 locale]# ls -l total 96800 -rw-r--r--. 1 root root 99158704 ...
142
votes
4answers
86k 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?
1
vote
0answers
16 views

Installing language packs offline

This is the first time I installed Lubuntu, and my computer is not connected to the Internet. Apparently the operating system is not totally translated in French, and I must upgrade the languages ...
8
votes
3answers
2k 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
64 views

Debian Jessie with Xfce: cannot change locale (LANG) after installing new locale

I am running Debian Jessie with xfce. I used to have the system in English (en_US.utf8 as LANG since I installed debian only with English). Lately, I installed new locales and even if I made sure I ...
3
votes
1answer
39 views

How to temporarily change locale for sudo?

To change the locale of the current user like export LANG=en_US.UTF-8. But this environment variable doesn't affect the root user. When I use sudo the display language remains default. How can I ...
0
votes
1answer
111 views

Can't set locale; make sure $LC_* and $LANG are correct!

UPDATE I found the problem. I need to relog after setting the language variables. But what I'm wondering is: How would I relog inside a vagrant script? Is this even possible? Introduction I've read ...
0
votes
0answers
43 views

Special characters are not recognized even with UTF-8 in KDE

So, I have Manjaro KDE pre 16 and I have some character encoding issues. Characters like ã á and such are not recognised and are represented by the ? sign. And all programs seem to use this encoding ...
0
votes
1answer
34 views

GNOME Terminal extended ascii support

I've got this file: 0 1 2 3 4 5 6 7 8 9 a b c d e f __________________________________ 20 | ! " # $ % & ' ( ) * + , - . / | 30 |0 1 2 3 4 5 6 7 8 9 : ; < = > ? | 40 |@ A B C D E F ...
1
vote
1answer
50 views

Which configuration files override /etc/default/locale?

For some strange reason, I find my I have several LC_ locale variables set to a value I don't recognize having chosen (en_ZA.UTF-8). So, I want to set it differently - permanently, from the command-...
58
votes
5answers
5k 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 ...
1
vote
0answers
87 views

Language and font problems in Linux Mint

I'm a Dutchman living in Hungary. I use a Dell Inspiron I7, 5000 series laptop with a Hungarian keyboard and Linux Mint 17.3 Rosa 64 bit. My Mint-system language is Dutch, language setting "Hungarian (...
0
votes
0answers
32 views

How to change the date format in the LXDM login/greeting screen (LXDE)

I found a number of resources to change the system (Archlinux 2016-03-01) date format, amongst others one to create a new format from an existing locale file. I then modifed /etc/environment and ...
5
votes
2answers
337 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 ...
1
vote
2answers
665 views

Problem of Can't set locale; make sure $LC_* and $LANG are correct!

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 ...
3
votes
1answer
15k 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
0answers
60 views

setxkbmap -option lv3:ralt_switch_multikey doesn't work with many layouts

My current xkb setup is as follows: $ setxkbmap -query rules: evdev model: pc104 layout: us,cz(qwerty) options: lv3:ralt_switch_multikey,grp:lalt_lshift_toggle When in the us ...
4
votes
2answers
114 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 ...
2
votes
0answers
99 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
112 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
34 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
685 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. ...
3
votes
1answer
24 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
62 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
5k 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
285 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 /etc/...