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

How to determine which Compose file is in use?

My locale is set to "en_NZ.UTF-8". There is no directory by that name listed by ls "$(nix eval -f '<nixpkgs>' --raw xorg.libX11)/share/X11/locale/", and X applications don't ...
l0b0's user avatar
  • 50.8k
1 vote
4 answers
346 views

How to get the current value of LC_CTYPE etc. in Bash?

Basically, how to achieve this in Bash? Parsing the output of locale - declare "$(locale | grep ^LC_CTYPE | tr --delete '"')" - seems yucky, as it involves four separate commands. ...
l0b0's user avatar
  • 50.8k
0 votes
0 answers
63 views

How to temporarily change locale for a gui-command?

If I try this suggestion with a gui-command like sudo LANG=en_US.UTF-8 partitionmanager, it's ends up with some confusing hints I can't get. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/...
John Goofy's user avatar
0 votes
0 answers
16 views

Ubuntu - PostegreSQL displays errors in foreign language even after changing all locales to en_US and reinstalling it

I inherited a Ubuntu desktop from another employee and installed PostgreSQL with the help of the official guide. abc@lenovo:~$ sudo apt install postgresql-15 I had not known that I had to setup an ...
qc033's user avatar
  • 1
0 votes
0 answers
35 views

Not completely switching language in Midnight Commander

spent a lot of time on this. All menu bars and control panel at the bottom are not translated. What I did: set the locale globally to the desired language, even tried LC_ALL reinstalled mc and mc-...
Olimpic Boy's user avatar
1 vote
0 answers
26 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
0 votes
2 answers
308 views

changing datetime format Ubuntu 22 [duplicate]

Looking for a solution for changing my machine datetime format to be DD/MM/YEAR hh:mm:ss. Currently ,Linux default is MM/DD/YEAR hh:mm:ss This is a GCP machine , running ubuntu 22.04.2 LTS . Thanks !
Dan Nir's user avatar
3 votes
0 answers
55 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
  • 3,938
0 votes
0 answers
82 views

Difficulty formatting number from DotNet program according to user's locale

I have been provided with a server to host my DotNet 7 application, but am having a problem display numbers formatted according to my user's locale. The OS is: $ cat os-release NAME="Red Hat ...
avenmore's user avatar
  • 101
0 votes
2 answers
104 views

Replace $'\374', $'\344' and more with appropriate umlauts

after 2 days of research, I must ask the pros over here. I had set up a NFS-share on my first Debian server at home. I copied over a few files from a windows 11 machine and now all the umlauts are ...
Sascha Halpape's user avatar
2 votes
2 answers
55 views

Unicode Supplementary Multilingual Plane (Plane 1) glyphs in xterm

I'm trying to display Unicode Supplementary Multilingual Plane (Plane 1) glyphs in xterm. Those glyphs are in the U+010000..U+01FFFF range (https://unifoundry.com/pub/unifont/unifont-15.0.01/...
grrr's user avatar
  • 33
0 votes
0 answers
25 views

Timestamp format different in date and ls -- locale problem?

In ls -l, file timestamps are shown as May 12 18:19 in 24-hour format. date shows Fri May 12 06:26:44 PM UTC 2023 in 12-hour format. Is that how it is supposed to be? Or do I have my locale setup ...
Johannes Ernst's user avatar
0 votes
1 answer
19 views

Setting locale into application scope

I want my default date format to be iso8601 but I want my desktop panel clock to use a 12-hour display. For this preference, the MATE panel clock applet wants a session language that includes a 12-...
Stephen Boston's user avatar
0 votes
1 answer
120 views

Get bitbake to use a different locale

I'm running through the Yocto Quick Build tutorial, and I've got to the command bitbake core-image-sato This is producing the error Your system need to support the en_US.UTF-8 locale. Can I change ...
Matt Ellen's user avatar
0 votes
1 answer
233 views

How to set locale in Nix shell on Ubuntu?

To demonstrate locale support in Ubuntu: vagrant init ubuntu/jammy64 vagrant up vagrant ssh sudo apt-get -y install hello language-pack-nb LC_MESSAGES=nb_NO.UTF-8 hello This prints the expected, ...
l0b0's user avatar
  • 50.8k
0 votes
0 answers
9 views

condensing locale requests on every program load

I ran strace on a number of programs (used syntax strace -fe trace=open --insert program here-- ) and every time I execute a program that automatically forks other processes, I notice lines similar to ...
mike_s's user avatar
  • 11
0 votes
1 answer
388 views

How to enable all locales (character encodings) on Debian 11 (over SSH, in Bash)?

I am unsure if I should not better ask: How to display Windows UTF-16 encoding in Linux? Since I just found out that Windows uses UTF-16LE to be exact: https://stackoverflow.com/q/66072117/1997354 I ...
Vlastimil Burián's user avatar
0 votes
1 answer
906 views

Ubuntu locale setting is invalid: No such file or directory

I've tried setting my locales in ubuntu 20 (I did it successfully in the last x years) unfortunatelly now I can't due something missing: $ locale locale: Cannot set LC_CTYPE to default locale: No ...
Erkman's user avatar
  • 3
2 votes
0 answers
203 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,232
2 votes
2 answers
122 views

How to combine settings from multiple locales in Linux?

When I installed Linux I set my locale to en_US.UTF-8. However I want to override some but not all of the settings in that locale. Specifically, I would like the Measurement to be Metric instead of ...
bch6595's user avatar
  • 21
0 votes
1 answer
70 views

How do I change the language of the man pages on Debian, while keeping the default language as english

I've tried changing the man pages on debian from English to Italian but all I have tried hasn't worked yet. First of all, I installed the manpages in Italian with apt install manpages-it. I then ...
Chris's user avatar
  • 1
1 vote
1 answer
90 views

apt-get autoremove is messing up locale stuff after having installed the gdal-bin package from debian testing main

I am trying to update the gdal-bin package from Debian unstable in the following Dockerfile: FROM postgis/postgis:15-master RUN echo 'deb http://deb.debian.org/debian testing main' >> /etc/apt/...
s.k's user avatar
  • 429
3 votes
1 answer
8k 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-...
Martian2020's user avatar
  • 1,083
0 votes
0 answers
52 views

"cannot set lc_ctype to default locale" is gone from `apt-get` output w/out change of `locale` output (due to `update-locale`), why?

When I run apt-get near the end of output can be: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "yy_YY", LC_ALL = "&...
Martian2020's user avatar
  • 1,083
0 votes
0 answers
2k 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
  • 1
0 votes
0 answers
12 views

Less in custom distro ignores all keyboard input

In the custom distro I'm running on an embedded system the tool 'less' is broken. It ignores all keyboard input and just echoes it to the screen. To quit I have to use ctrl-z and kill %1. I've used ...
davolfman's user avatar
  • 509
1 vote
1 answer
230 views

Locale settings for RHEL 7/8

In RHEL7/8 I know we control the locale setting using localctl command and which updates the /etc/locale.conf file. Ex : # localectl set-locale LANG=ja_JP.utf8 # localectl set-keymap jp106 # ...
user984993's user avatar
1 vote
1 answer
56 views

Debian server only accept LC_* variables, not LANG, via SSH

My local /etc/ssh/ssh_config has SendEnv LANG LC_* The server-side /etc/ssh/ssh_config has AcceptEnv LANG LC_* Nevertheless, when I SSH to my Debian server, I noticed that $LC_* family is passed to ...
Franklin Yu's user avatar
  • 1,227
9 votes
1 answer
487 views

What value for LANG should I use for "sort -u“ correctly handle Chinese characters?

The context Issues found Issue no. 1 Issue no. 2 Issue no. 3 The question The context Today, I wanted to keep the unique lines in a file containing Chinese characters. I decided to use the sort ...
rdrg109's user avatar
  • 201
4 votes
0 answers
125 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
  • 93
7 votes
2 answers
678 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&...
illiterate's user avatar
4 votes
2 answers
355 views

Reverse Eastern Arabic numbers at the end of each line

I have a file with 10,000 lines, and at the end of each line, there is a number, like: asdf ggg ١ gghh rtt ٣٢٥ tyyu bnnn jigff ٢٧ Arrange the digits of all numbers in reverse order. The right order ...
dlhi's user avatar
  • 43
2 votes
1 answer
435 views

How to set character encoding for OpenBSD tty session?

On OpenBSD, in order to appropriately see language specific characters in X sessions all I need to do is set LC_CTYPE to one of the values listed using locale -a. I do this by adding export LC_CTYPE=...
zajer's user avatar
  • 213
1 vote
0 answers
55 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
  • 539
1 vote
1 answer
1k views

How to generate C.UTF-8 locale on CentOS6

Failing to generate C.UTF-8 locale on CentOS6 : # locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or ...
SebMa's user avatar
  • 1,991
1 vote
2 answers
887 views

Change the default language in Open Suse Tumbleweed

I installed OpenSuse Tumbleweed instead of Debian, with which I have a 25 years familiarity, on my new PC. Now, I have problems with UTF-8, e.g., when I cat some_file containing UTF-8 encoded Unicode ...
gboffi's user avatar
  • 1,222
2 votes
1 answer
682 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 ...
dotancohen's user avatar
  • 15.6k
1 vote
0 answers
62 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
  • 413
0 votes
3 answers
6k views

Switching keyboard layouts

END GOAL I use Arch Linux with bspwm as my window manager and sxhkd as a hotkey daemon. I want to map a certain key combination in my sxhkdrc so that it shuffles through different keyboard layouts. ...
Vladimir's user avatar
  • 149
0 votes
1 answer
735 views

Language icon is missing from the Cinnamon settings! (Debian 11 installed with Cinnamon)

Working in a multicultural environment, I recently needed to switch the language displayed in my computer GUI (Debian 11 installed with Cinnamon). And I did not manage to do it easily! I have been ...
user1185081's user avatar
1 vote
1 answer
1k views

Characters do not display properly in terminal (st)

When typing German umlauts (ä,ö,ü) into the terminal (I am using st on Arch Linux, $XTERM is st-256color), it displays only <ffffffff>. Locale seems to be set properly. Output of locale is ...
l2poca's user avatar
  • 13
1 vote
1 answer
1k views

Locales were not being generated by dpkg-reconfigure locales

According to this problem that I've encountered today: Locale not setting on Debian I have solved my problem by running sudo apt-get install locales-all. But one question - what is sudo dpkg-...
todovvox's user avatar
1 vote
1 answer
2k views

Locale not setting on Debian

I've been having troubles with locales recently. I've been having a problem with them since a long time ago, but didn't bother to fix (dumb me, maybe back then I was closer to solving this problem). ...
todovvox's user avatar
2 votes
2 answers
211 views

Cannot open files with Umlaut with Libreoffice on Debian

I have set up a new system with a backported debian 11 and KDE Plasma 5 and wanted to continue working on my files. Some of them are from shared project containing Umlaute (ö, ü, ä) which I cannot ...
Pratched's user avatar
  • 151
3 votes
2 answers
2k views

PERMANENTLY change the output format of the 'date' command in my Kali Linux

So I have 2 different Linux installations. One of them is Ubuntu and the second one is Kali. When I run date command with no options/arguments on my Ubuntu install I get: michal@ubuntu:~$ date Thu 24 ...
michal roesler's user avatar
1 vote
1 answer
280 views

Missing Oracle Linux (red hat family) Locales

I was logging on to a dev oracle linux 7 system and noticed these warnings when logging in: Last login: Thu Mar 24 15:23:29 2022 from x.x.x.x -bash: warning: setlocale: LC_ALL: cannot change locale (...
Im-Kirk-Dougla-Cus's user avatar
0 votes
1 answer
100 views

How to update a locale and timezone on a static image that isn't running

I am building an Ubuntu static image (for flashing to a USB) where I want to preset the timezone and locale in that image so that it is already set when the image boots. It appears the only way to ...
AdvApp's user avatar
  • 131
1 vote
1 answer
417 views

Why does mkdir messes up special characters (german umlauts)?

I have a system which is set up with Debian. Running the command mkdir xx_ü on this system, creates a directory called 'xx_'$'\303\274'. Running the same command on a system that is set up with ...
Thomas's user avatar
  • 166
2 votes
1 answer
456 views

How to find a locale name for a given character encoding?

The man page for setlocale seems to say that the language code and the character encoding name are sufficient to set the appropriate locale: A locale name is typically of the form language[_territory]...
Dmitry Grigoryev's user avatar
1 vote
1 answer
376 views

Origin of date command default US format

date seems to have a very odd default format in the US locale: Thu Jul 9 17:00:00 EDT 2020 using a space-padded day-of-month and putting the (24-hour!) time in the middle, between the month+day and ...
Adám's user avatar
  • 161

1
2 3 4 5
11