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.

113 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
212 views

Why does uniq drop korean string?

I have a CSV file containing 220k names that I want to batch import into a graph database. The batch importer imposes the restriction that each node must occur only once so I want to remove duplicates ...
oschlueter's user avatar
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,...
Alex Martian's user avatar
  • 1,095
4 votes
0 answers
177 views

How to get any language alphabet?

Are there any utilities that can give me the alphabet of a specific language/locale (when the term "alphabet" makes sense)? Something like typing: localeinfo 'de_DE.UTF-8' | grep 'alphabet' ...
cppbest's user avatar
  • 193
4 votes
0 answers
503 views

Case-insensitive C locale

I'm trying to create a custom locale for use with the LC_COLLATE variable which sorts text just like the C locale, with the only exception that it sorts case-insensitively. I need this because I have ...
konira11's user avatar
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 ...
yuvi's user avatar
  • 141
4 votes
1 answer
848 views

locales: modify default time format

I need to change the default time format on my Debian Wheezy system. I am following this howto. I have modified the corresponding lines in /usr/share/i18n/locales/en_US d_t_fmt "<U0025><...
user1968963's user avatar
  • 4,103
3 votes
0 answers
206 views

How can I format the date and time in accordance with ISO 8601 / RFC 3339 using systemd?

How can I configure the environment of a systemd based Linux system to display the date system-wide in the format yyyy-mm-dd? This date format adheres to the specifications defined ISO 8601 and RFC ...
Jonas Stein's user avatar
  • 4,168
3 votes
0 answers
180 views

Different collation behaviour between ubuntu 18.04 and 20.04 for Thai

There are two virtualbox machines on vagrant boxes ubuntu/bionic64 and bento/ubuntu-20.04 (first one is ubuntu 18.04 and the later is ubuntu 20.04). Once booted, we define locale en_US.UTF-8 with sudo ...
pavlos's user avatar
  • 31
3 votes
0 answers
45 views

Should I set the locale to `C` when matching a range of numbers?

If I wanted to search for lines in a file that contain a or b or c or d I would run LC_COLLATE=C grep -E '[a-d]' file_to_search or LC_ALL=C grep -E '[a-d]' file_to_search If I fail to set the ...
Harold Fischer's user avatar
3 votes
0 answers
803 views

Windows-like LC_COLLATE?

One of the most infuriating things that causes me much frustration when I am using Linux is the completely assinine way that files get sorted when sorting by name. This is compounded by the output of ...
Karai17's user avatar
  • 147
3 votes
0 answers
395 views

ISO8601 time everywhere?

I would like to have my dates and times shown in ISO8601. I have been unable to find a locale which supports that and which does not cause other programs (e.g. perl) to go berserk. Which locale ...
Ole Tange's user avatar
  • 36k
3 votes
0 answers
2k views

Can each program or application run with a different locale?

From what I know, if I want to run an application with a different locale, I have to run a terminal, then enter export LANG=xx_XX.UTF8 and then run the command. The problem came up when I wanted to ...
nikolas's user avatar
  • 483
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 ...
Giorgi Gavasheli's user avatar
3 votes
1 answer
759 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 ...
Ruben Schade's user avatar
2 votes
0 answers
481 views

locale of .utf8 or .UTF-8?

Of the same Debian 11 bullseye, I get different locale for C: .utf8 and .UTF-8: My machine: $ locale -a C C.utf8 POSIX en_US en_US.iso88591 en_US.utf8 $ lsb_release -a No LSB modules are available. ...
xpt's user avatar
  • 1,692
2 votes
0 answers
405 views

Why don't browsers respect LC_TIME?

I'm using en_US for system language, but pl_PL for date format. It works OK in the entire system, and running date gives me a correctly formatted date. It also shows Polish as Time format in the GUI ...
chojnicki's user avatar
  • 121
2 votes
0 answers
75 views

Making the locale time format more compact

dmesg -T gives human readable time format, and I want to make it more compact, from this [Пт мар 12 09:18:54 2021] wlan0: associated to this [12.03.21 09:18:54] wlan0: associated I'm using ru_RU.UTF-...
5007060's user avatar
  • 21
2 votes
0 answers
2k views

How to apply permanently setxkbmap setting for all users on Ubuntu 18.04.5 LTS

I've found the command to set my keyboard output to Belgian, but everytime I restart my computer I can't use some typical characters. Example: "T^ete" instead of "Tête" (What means ...
user avatar
2 votes
1 answer
85 views

debian v10 locale interpretation in date command

I've noticed that after upgrade from Debian 8 to Debian 10, the date command produces different (12H) format though the same LC_TIME is set on both. It can also be easily demonstrated using LC_TIME in ...
Chris's user avatar
  • 4,331
2 votes
1 answer
107 views

How to replicate these locale settings in the console?

I'm not an UI-person, but a terminal person. I prefer to do my work in terminals. However, this time when I upgraded a debian package (I forgot which) the whole locale system went down the drain. I do ...
bos's user avatar
  • 887
2 votes
0 answers
91 views

Same locale, different distrib, inconsistent behavior

I migrate a system from a CentOS 6.9 VM to a Debian 10 Docker container, and I can't explain why thousands separator differs. Same locale (fr_FR.UTF-8), same version of the locale yet different ...
ssssteffff's user avatar
2 votes
0 answers
299 views

Language settings are removed after restarting computer

I have had this problem since I downloaded Debian 10 KDE Plasma. Any time I run a program I get warning errors about the language settings. I have ran all of the commands to set the language settings ...
mikanim's user avatar
  • 131
2 votes
0 answers
57 views

How to be certain of running linux command in English?

I'm writing some software that uses the output of some system (linux) commands. Problem is, it fails with languages other than english. Is there a way to run linux commands and be sure that they'...
stevec's user avatar
  • 191
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 ...
porvik's user avatar
  • 41
2 votes
1 answer
85 views

Local keys don't work in graphical shell in Debian 9.6

I installed Debian 9.6 with english as the language, and locale settings (incl. keyboard) as finnish. All works fine in desktop apps e.g. Chromium, but the keys "ä", "ö" and "å" don't work in Konsole, ...
J Lehtiranta's user avatar
2 votes
1 answer
437 views

Encoding problems with German man pages

On the machine I am working on I have English man pages under /usr/share/man/and German ones under /usr/share/man/de. The former are encoded with us-ascii, the latter ones with utf-8. Unfortunately ...
Simon Fromme's user avatar
2 votes
1 answer
2k views

Why is sed failing to follow collate order?

On this command: $ echo "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | > sed 's/[a-z]//g' ABCDEFGHIJKLMNOPQRSTUVWXYZ It seems correct, doesn't it? However, the locale in effect is ...
user avatar
2 votes
0 answers
840 views

setting locale for utf-8 , but to keep measurements, time, date, etc .like with ="C"?

End goal: use utf-8, but keep rest default (i.e. monetary, date, numeric, etc formats). I come up with idea "let's make system utf-8 , but keep measurements, time, date, etc like it was" and this (...
Grzegorz Wierzowiecki's user avatar
2 votes
0 answers
40 views

Use English locale for keystrokes with modifiers

In my Linux system, I use English, Russian and Ukrainian locales. Because the latter two are non-latin (cyrillic), my hotkeys don't work with these locales. Is it possible to always interpret keys as ...
Oleksii Filonenko's user avatar
2 votes
0 answers
383 views

Why is output for `grep -o` the same with or without LC_ALL=C?

Why is output for grep -o the same with or without LC_ALL=C? There is a difference for grep with no flags for me as expected but there's no difference for grep -o. Does grep -o always use LC_ALL=C or ...
brendan's user avatar
  • 175
2 votes
0 answers
1k 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 layout,...
Pavel Šimerda's user avatar
2 votes
0 answers
395 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 ...
Hubro's user avatar
  • 1,095
2 votes
0 answers
138 views

How to get a detailed, Kubuntu-like GUI for changing regional/locale settings without installing all of KDE?

Kubuntu's GUI (like here), for locale settings is very detailed. Is there a way to get a similar, detailed GUI outside of Kubuntu without installing the entire KDE desktop environment? I have here a ...
user88893's user avatar
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 ...
Jamal's user avatar
  • 121
2 votes
0 answers
2k views

Set Up New Locale On CentOS 6

I am trying to set up a new locale for my centos server environment. Here is currently shows for locale -a command: en_AG en_AG.utf8 en_AU en_AU.iso88591 en_AU.utf8 en_BW en_BW.iso88591 en_BW.utf8 ...
Rana's user avatar
  • 121
2 votes
0 answers
1k views

Character encoding issue with my linux install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
diegoaguilar's user avatar
2 votes
1 answer
660 views

Problem with log in after change locale, maybe relate to PAM

System information: Debian Wheezy CPU: intel core i7 3770 I initially only had en_US.UTF-8 as the default language. This morning, I changed the /etc/local.gen file and un-comment the zh_CN.UTF-8 and ...
user292140's user avatar
1 vote
0 answers
59 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 ...
Abhisek's user avatar
  • 111
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 ...
S. N.'s user avatar
  • 297
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 ...
Broshward's user avatar
1 vote
0 answers
99 views

Cannot type diacriticis with my keyboard

Polish diacritics such as ą or ć (created with RAlt+[latin letter] combination on a pl keymap) cannot be typed in ArchLinux. Based on the locale wiki page, I verified that: I generated neccessary ...
DeutscheGabanna's user avatar
1 vote
0 answers
4k views

How to fix 'warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)' on arch

I am on arch for Wsl and was having trouble opening exe applications(such as firefox) from wsl2 terminal. By running locale -a I found that I didn't have en_US.UTF-8 or any other locale and only had C....
Init's user avatar
  • 11
1 vote
0 answers
93 views

is there any way query LC_CTYPE locale character class expressions?

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05 9.3.5 RE Bracket Expression section 6 quote: The following character class expressions shall be supported in all ...
jian's user avatar
  • 577
1 vote
0 answers
81 views

Custom locale does not apply date format in at least one application

Potentially this is not an OS problem, but a problem with the specific application (LibreOffice Calc). I have created and compiled a custom locale: $ set |grep LANG= LANG=en_XX.UTF-8 $ cat /usr/share/...
v010dya's user avatar
  • 543
1 vote
0 answers
143 views

How to use the unix command "sort" with user-defined collation list?

Background: The kanji ideograph character sorting / encoding sequence in GB2312, GB18030-2005, GBK, Big5, CNS-11643 varies and are different to how they get sorted in Unicode (incl. UTF-8). As of ...
Shiki Suen's user avatar
1 vote
0 answers
1k views

how to set SSH locale

I have a box running Poky Linux Rocko-2.4.2 with BusyBox. I set the locale to US English UTF-8 (en_US.UTF-8). If I log in as root directly at the console and execute: locale, I get the expected ...
Jared Sanchez's user avatar
1 vote
0 answers
192 views

Why do BSD and GNU grep give different results here?

I distribute a slightly modified version of a public CSV file. To generate the modified CSV file I use a short one-line grep command: grep -Ev '^([A-Za-zA-Za-z]|[0-90-9]*),' input.csv Actual project ...
polm23's user avatar
  • 171
1 vote
0 answers
3k views

Arch - Solve: Cannot Set LC_ALL to default locale: No such file or directory

I would like to change my locale in a VM running Arch. I'm following the documentation for Arch at: https://wiki.archlinux.org/index.php/locale and did this: Uncommented the language I want to try ...
user5507535's user avatar
1 vote
1 answer
423 views

Can't type non-english characters in terminal

As the title says I can't type e.x. ř, č, š, etc. in terminal. My keyboard layout is set to Czech and I can type these characters in e.g. Firefox. I did regenerated my locales with sudo locale-gen ...
user433548's user avatar
1 vote
0 answers
51 views

Call script in locale definition

I am following the answer in https://askubuntu.com/a/162714/146591 to generate a custom locale on my system. Many of the fields that can be configured in a locale are input for the date utility (https:...
Hidde's user avatar
  • 111