Skip to main content

Questions tagged [locale]

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.

Filter by
Sorted by
Tagged with
5 votes
1 answer
10k views

How to change regional settings in Linux, including decimal point

I was on Linux Mint, now I'm trying Ubuntu 18 main distro. At top of Gnome day of week/time is displayed. That's where I started, wanting to change it to English having set regional to Russian via GUI,...
2 votes
1 answer
2k views

Can not switch from en_US.US-ASCII to en_US.UTF8

I am using many non ASCII characters in my filenames and up untill now everyone worked correctly. I am running openSUSE Tumbleweed and currently updated to the 20191118. I have noticed that my ...
2 votes
2 answers
1k views

Why might `date` be showing 12h format?

I've always seen 24h time shown in the date output. But for some reason, my Debian-based machine is now showing 12h time format: $ date Fri 10 Jun 2022 06:16:47 PM IDT $ LC_TIME=en_IL.UTF-8 date Fri ...
0 votes
0 answers
49 views

Creating file name which contains non-ASCII Unicode character in C locale

What is best practice to create a file name, when run in the C locale, with data containing a non-ASCII Unicode character? For example, the data for the file name is 9 She\342\200\231s My Girl.mp3 (...
0 votes
1 answer
50 views

How to fix a locale warning from Perl?

Ubuntu 22.04 LTS perl -e exit: ...
0 votes
2 answers
43 views

Preview locales

How do I quickly preview what a locale looks like? E.g: is there something like $ localepreview en_DK.UTF-8 Of course, I immediately think of a script like #!/bin/bash LOCALE=$1 export LANG=$LOCALE ...
0 votes
1 answer
45 views

How do I get a locale or timezone used on Venus?

In this answer, Stéphane Chazelas uses a UVC timezone and vs_VS locale. When I asked about them, the reply was that these are the timezone and locale used on ... Venus. I'm not entirely sure whether ...
25 votes
3 answers
32k views

Reload /etc/default/locale without reboot?

After making changes to /etc/default/locale, is it possible to reload/active the new settings without a reboot?
0 votes
0 answers
25 views

What does a locale’s codeset get used for?

According to glibc’s manual: Most locale names follow XPG syntax and consist of up to four parts: language[_territory[.codeset]][@modifier] For example, you could have a locale named zh_CN.GB18030 ...
1 vote
2 answers
44 views

Change locale LC_NUMERIC decimal_point for shell or individual command

In my bash environment (version 5.2.26), the only available locale is French, which is normally fine. But like most people in France, it is regularly necessary to handle floating point numbers with a ...
1 vote
1 answer
77 views

LC_TIME portability (and other locale settings)

It seems that Linux and FreeBSD (at least) have different notions of how presentation of time is implemented in different locales (LC_TIME), notably but not entirely in how the hour of day is ...
2 votes
1 answer
229 views

Cannot set LC_* to default locale: No such file or directory

I just got my Raspberry Pi 4B 8GB installed with Debian 12 Bookworm, made WiFi, SSH, etc working as I wanted to, but I often get locale errors like with tasksel command: root@rpi4:~# tasksel perl: ...
4 votes
1 answer
2k views

Linux Deepin language switcher - making it smoother like in Ubuntu

I installed the latest Linux Deepin 2014.2 distro. It's a Chinese distro based on Ubuntu 14.04. The OS is great, but there's one annoying flaw - when switching language, there appears a transparent ...
2 votes
1 answer
75 views

How to unset a locale variable using localectl?

Under Fedora, I've set a custom locale variable value: localectl set-locale LC_TIME=en_DK.UTF-8 This modified LC_TIME indeed. Now I'd like to get it back to unset/empty/default state. How do I do ...
3 votes
1 answer
7k views

what(): locale::facet::_S_create_c_locale name not valid

I have a Kali Linux where I cannot install any packages. locale is not working and I cannot install it what can I do? I changed sources.list but it's of no help, I tried sudo dpkg-reconfigure locales ...
3 votes
2 answers
10k views

What does "in the POSIX locale" mean?

In this question there is a comment which says: All of this from not understanding what "in the POSIX locale" means. (-: You should really try matching Greek lowercase letters with (say) sed and [[...
5 votes
2 answers
2k views

'ls -l' file timestamp format

When I issue the command: ls -l The file/directory modification timestamp column (specifically the month part) is displayed in the native language of the country I'm based in instead of English. ...
0 votes
0 answers
16 views

Displaying European accents without Xorg [duplicate]

I'm setting up Arch Linux on a new computer, and I intend to use bspwm as a window manager. I know bspwm runs on Xorg, and there is plenty of information online on how to display region-specific ...
0 votes
0 answers
28 views

Add LC_CTYPE to Desktop Entry

I'm using fcitx5 with emacs, to enable entry of Chinese characters. There is a known issue with emacs, where in order to input Chinese characters, one needs to launch emacs using LC_CTYPE=zh_CN.UTF-8 ...
5 votes
1 answer
18k views

perl: warning: Setting locale failed

I bought a VPS, Centos 7. However, I was able to understand what was going on with SSH and connected to my WHM. After connecting, I get a list of errors and there is something like this: perl: ...
0 votes
2 answers
3k views

Can't login to Alpine Linux due to a faulty keymap configuration

I have a fresh Alpine Linux 3.8.0 installed on a local disk, dual booted with Ubuntu 18.04. While trying to solve some GUI localization issue, I've entered a wrong keymap in setup-keymap. Sadly, ...
7 votes
1 answer
2k 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 language-pack-...
0 votes
0 answers
56 views

How do I prevent the locales from being re-generated?

Trying something on a local VM that runs Debian. Have a snapshot, from which I recover fairly often. As I am going back and forth, non-zero times have I ran into it re-generating locales, which takes ...
0 votes
0 answers
107 views

When I run sudo apt-get upgrade, it shows errors regarding initramfs-tools

When I run sudo apt-get upgrade, I get this output: Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly ...
1 vote
0 answers
57 views

Difference between localectl and LANG environment variable

My default language was set to en_IN. Then I came across update-locale and localectl to change my locale to support UTF-8. I changed it using sudo localectl set-locale LANG=en_IN.UTF-8 However that ...
0 votes
1 answer
36 views

How to change locale of xfce4-terminal window?

I need to record a gif (using peek) of copy/paste for my project. But I want the interface to be English. I was able to do this once, I've added env LC_ALL=C exo-open --launch TerminalEmulator in ...
2 votes
2 answers
2k 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/...
1 vote
0 answers
48 views

Error of custom en_US-based locale compilation

While in /usr/share/i18n/locales I execute the following (the first line is because I do not want en_US to be messed up): cp ./en_US ./en_SN sudo localedef -i en_SN -f UTF-8 -vc ./en_SN.UTF-8 The ...
8 votes
1 answer
3k views

Why does Gnu sort sort differently on my OSX machine and Linux machine?

I have a OSX machine where sort runs GNU sort from coreutils 8.26 (installed from Homebrew), and a Linux machine where sort runs GNU sort from coreutils 8.25. On the Mac: mac$ echo -e "{1\n2" | sort ...
0 votes
0 answers
41 views

git cli language default to first non english value

I have my computer language set to en_GB with fr_FR as backup only for spellcheck and money/measurement formatting purposes. CLI apps work fine like that except git, who insist on using the first non ...
4 votes
2 answers
7k views

How to fix UTF-8 / locale problem in openSUSE Linux (in terminal / file names and program dialogues)

I have some file / folder names which are not 7-bit clean and they are not displayed correctly in my openSUSE system. Example for the folder /music/Gabriel_Fauré: # ls -1d /music/Gabriel_Faur? /...
3 votes
1 answer
2k views

systemd : changing locale without rebooting

On a Debian Stretch system, when reconfiguring locales (dpkg-reconfigure locales as well as using localectl) systemd keeps running with the boot setting. Therefore services launched with systemctl ...
2 votes
1 answer
868 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 ...
2 votes
4 answers
6k views

How to fix missing locale files on Manjaro?

I'm running Manjaro Gnome and installed some updates with the package manager. Since then I keep getting these messages in the console: manpath: can't set the locale; make sure $LC_* and $LANG are ...
0 votes
0 answers
69 views

user-dirs.dirs and user-dirs.locale on Debian and Mint

I am nervously reviving an old instance of Linux Mint on a fresh install of the latest Debian 12 Bookworm. The Mint is about four or five years old and its /home folder is backed up on another drive ...
13 votes
6 answers
6k views

LC_CTYPE breaking autocomplete: what is the cause of this problem?

For some reason today, every time 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 ...
11 votes
3 answers
4k 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 ...
1 vote
0 answers
26 views

How to change my calendar to icelandic traditional in linux

This is similar to what Svante Janson described in the article: https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=8c996f399e30ccc6c55164bb8e169fa5ff398168 Icelandic Begins ...
3 votes
1 answer
104 views

apt randomly switches languages ever since I installed Arabic on my Pop!_OS running KDE Plasma

I recently installed Arabic on my system and since then apt sometimes does things in Arabic and sometimes in English user@pop-os:~$ sudo apt update && sudo apt upgrade Hit:1 https://dl.winehq....
7 votes
2 answers
796 views

What is "modifier" in locale name?

The arch wiki page says: Locale names are typically of the form language[_territory][.codeset][@modifier] Unfortunately it does not says what is "modifier". What is that "modifier&...
497 votes
6 answers
464k 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
1 answer
187 views

error: Bad entry 'en_AG ', etc, when generating locales on Linux Mint

I am unsure what is happening with those "bad locales", I am updating my laptop regularly once daily. This came up today: Setting up locales (2.35-0ubuntu3.4) ... Generating locales (this ...
4 votes
1 answer
21k views

"bash: warning: setlocale: LC_ALL: cannot change locale" - misleading? What does it mean?

I want to understand how locales work. In particular I've read "-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)" and https://askubuntu.com/questions/114759/warning-...
4 votes
2 answers
197 views

Why is ls sorting Chinese filenames by length?

I've run into a bit of a weird behaviour that I don't fully understand with ls and Chinese filenames. I'm running macOS 13.6.1 with SIP enabled (no core OS modifications), MacPorts installed, and US ...
0 votes
1 answer
40 views

japanese fonts in firefox ok but from apache no

This is my first round with Apache so please forgive my ignorance of principles that any decent Apache administrator should know. Apache 2.4.58-1 6.6.1-arch1-1 Mozilla Firefox 119.0.1 I have an ...
135 votes
8 answers
30k 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 ...
2 votes
2 answers
2k 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 ...
0 votes
1 answer
119 views

How to preserve non-ASCII characters?

We have default POSIX locale in our server but when non-ASCII character like רקטות לגוש דן וירושלים(hebrew) uploaded in server its getting changes to רק××ת ×××ש ×× ××ר×ש×××, How can preserve it ...
0 votes
1 answer
116 views

Why is MB_CUR_MAX 6 instead of 4 for UTF-8? (Linux, glibc)

MB_CUR_MAX is defined by glibc as 'a positive integer expression that is the maximum number of bytes in a multibyte character in the current locale.' If I print the value I get 1. I assume that this ...
13 votes
1 answer
3k 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 ...

1
2 3 4 5
11