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

2
votes
1answer
21 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
84 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
3answers
36 views

How to set English as a defualt language in debian?

How to 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 ...
0
votes
2answers
33 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
30 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 ...
18
votes
4answers
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 ...
1
vote
1answer
589 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 ...
2
votes
0answers
50 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
51 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
77 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 [~] ...
0
votes
1answer
89 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
105 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 ...
4
votes
1answer
731 views

Consequences of setting up POSIX locales

Small background of the situation: 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 ...
26
votes
3answers
15k 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 ...
0
votes
0answers
42 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 ...
2
votes
1answer
37 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 ...
3
votes
3answers
99 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 ...
1
vote
1answer
33 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 ...
1
vote
3answers
85 views

Why are file names surrounded wtih “â” sign?

After adding alias rm='rm -i' to my ~/.bashrc file, because when I remove file, shell wasn't asking for confirmation, file names are surrounded with "â" sign like in example below: rm: cannot remove ...
2
votes
1answer
17 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
123 views

LMDE2 / MATE locale charset inconsistency

I have a machine with Linux Mint Debian Edition 2 "Betsy" (installed as RC, with all available updates applied) and MATE desktop environment. My problem is that in some applications special characters ...
0
votes
1answer
28 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
218 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
107 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
79 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
230 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
24 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 | |------------+------------------| | Вождение | ...
2
votes
0answers
42 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 ...
2
votes
1answer
183 views

Perl fails to set locale on AIX 7.1

After setting user language to Chinese with GB18030 encoding in SMIT, the following env variable were added to the user's .profile: LANG=Zh_CN LC_MESSAGE=%l.%c ...
1
vote
0answers
50 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 ...
1
vote
1answer
41 views

How do I get the language for messages?

Is there a single command I can use to get the language to use for messages or do I have to check LC_MESSAGES, LC_ALL, LANG etc. in some specific order?
2
votes
1answer
444 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. ...
1
vote
1answer
112 views

emacs text mode UTF-8 characters

I can't get emacs (version 24.4.1) in text mode (-nw launch option) to display Unicode characters directly. It outputs them in escaped form, e.g. ä becomes \344. When I save the file, it is encoded as ...
7
votes
1answer
431 views

Set custom locales in Gnome3 (on Fedora 20)

I've created my own custom locales and placed them in /etc/locale.conf which successfully takes effect if I log in on a virtual console (Ctrl+Alt+F2). In my Gnome3 session those variables are not set, ...
2
votes
2answers
3k views

LC_ALL: cannot change locale

When I log into my server (Debian 7) through PuTTY, I get greeted by a message saying: -bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8). Then, when I try to run almost any ...
2
votes
0answers
22 views

Why did the time format in Steam chat change after I started using xinit?

The time format in my Steam chat used to look like this: 23:59 After I stopped using Slim and started using xinit, it looks like this: This only displays the hour and the time zone, which isn't ...
0
votes
3answers
285 views

How make console to support chinese in CentOS 7?

How can I make the console in CentOS 7 support Chinese? I used localectl command. Following is the result: System Locale: LANG=zh_CN.UTF-8 VC Keymap: cn X11 Layout: cn The sets are for Chinese. ...
2
votes
2answers
4k views

How to change language interface in Xfce?

I installed Debian sid with Xfce and I would like to change the language used in the interface. I would like to set the language to English (US) remplacing French. The change must be on whole system ...
15
votes
2answers
448 views

Bracket expression (without ranges) matching unexpected character in bash

I'm using bash on Linux. I am getting a success from the following if statement, but shouldn't this return a fail code? if [[ ■ = [⅕⅖⅗] ]] ; then echo yes ; fi The square does NOT equal any of the ...
85
votes
3answers
47k 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
1answer
121 views

Problem with apt-get and locales (inappropriate # in .deb package name)

First of all, I'm running Raspbian, any extra needed info, I will post it here, just ask for it. EDIT: Output of locales -a: C C.UTF-8 en_GB.utf8 POSIX I configured en_GB.utf8, about the others, ...
1
vote
1answer
177 views

Can not set the LC_TIME variable for the current process [duplicate]

On Linux Mint Rebecca, my current LC_TIME setting is LC_TIME="en_US.UTF-8" I would like to execute date and watch how the current date is displayed in a Chinese format with Chinese characters. ...
2
votes
1answer
3k views

bash ssh warning when connect to raspberry: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [duplicate]

I tried for example this to solve my problem and this too. My problem is that when I try to connect to my Raspberry pi2, I got the following messages: Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT ...
2
votes
1answer
156 views

Question marks instead of national letters in console

I have Netgear Stora MS2000 (which uses a modified version of Red Hat) and have strange font issues while connecting by SSH. Note that this occurs both when connecting by PuTTY from Windows and by ...
2
votes
2answers
1k 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 ...
2
votes
1answer
86 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 ...
3
votes
1answer
50 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
1answer
169 views

What is the proper encoding name to use in locale for UTF-8?

Just wondering here as I have on this CentOS 7 system: $ locale -a <snip> en_US.utf8 <snip> and yet: $ localectl System Locale: LANG=en_US.UTF-8 To add to that, the preferred name ...
5
votes
1answer
717 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 ...
2
votes
2answers
113 views

The 'LANGUAGE' locale variable - how to set English as primary language? A bug in gettext?

The "LANGUAGE" variable is supposed to set the default language and can be used to specify a set of languages, where the next language will be used if a message is not available in the first ...