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
0answers
9 views

command date not respecting timezone [migrated]

I'm in git-bash on Windows 10 : ~$ locale LANG=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_ALL= ~$ date --version date (GNU coreutils)...
1
vote
1answer
98 views

CentOS7/GDM/Xfce - Locale set to xxx.UTF-8 at session start despite system-wide locale to xxx.iso88591

I'm using CentOS 7 with XFCE and GDM. My issue is as follows: I want my locale to be LANG=fr_FR.iso88591 (required by an antic piece of software). Following CentOS official guide, I did the ...
16
votes
2answers
1k views

What is the difference between LANG=C and LC_ALL=C?

I like to disable all locale specific differences in shell scripts. What is the preferred way to do it? LANG=C or LC_ALL=C
0
votes
1answer
20 views

How to generate C.UTF-8 locale in MacOS to use Postgresql

I want to use C.UTF-8 locale in MacOS(10.15.3) that doesn't exist by default. And there is no locale-gen command in Mac. How can I create a locale in MacOS? I only use the locale for Postgresql DB.
0
votes
2answers
49 views

Diacritic characters (ō, ó, á, ä, ö, ü etc) support in Debian shell

I run a server on Debian as a file storage. Some files and directories contain those symbols in their name, and all those symbols get replaced with ? (or ? is what shell output shows me) when they get ...
0
votes
1answer
15 views

Xfce: set time language to other than that of the system (interface)

I want o have English for my system interface and settings, but French for locale (region), including time (weekdays, months, which appear in conky etc). But in Xfce the time language is set along ...
1
vote
0answers
20 views

Difference in sorting behaviour based on LANG setting

I ran following two commands with different LANG settings : ~$ LANG= sort <<< $'x\n_y\nz' _y x z ~$ LANG=en_US.UTF-8 sort <<< $'x\n_y\nz' x _y z Can someone explain why there is ...
-3
votes
2answers
160 views

Proposed additional POSIX “Character Classes” [closed]

There are a handful of "character classes" defined in POSIX as in LC_CTYPE locale definition with the following (12) names: alnum alpha blank cntrl digit graph lower print punct space upper xdigit ...
0
votes
1answer
17 views

How to take accent in account on centos [6|7] in bash

I'll give you an exemple, it would help. on my ubuntu LTS 18.04 touch /tmp/"Éléments supprimés" ls -l /tmp/*suppr* -rw-rw-r-- 1 USER USER 0 mars 4 08:28 '/tmp/Éléments supprimés' on my centos 6 ...
0
votes
0answers
32 views

How to set GNOME terminal locale to C.UTF-8?

I am having difficulty setting gnome terminal environment to C.UTF-8 locale, using Debian bullseye/GNOME3. I can update /etc/default/locale to LANG=C.UTF-8. After reboot: me@tesing:~$ localectl ...
0
votes
1answer
59 views

Why can't set value of LC_ALL in locale?

OS in my local pc. uname -a Linux debian 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86_64 GNU/Linux My current locale. locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" ...
0
votes
2answers
76 views

Can't set “LANG” environment variable through /etc/default/locale

I'm running the following setup Operating System: Debian GNU/Linux 10 KDE Plasma Version: 5.14.5 (I'm also using Awesome WM if that's relevant) Following the Debian wiki, I've run dpkg-reconfigure ...
7
votes
1answer
451 views

Sort LC_ALL=C vs LC_ALL=C.utf8

Does the linux sort command differentiate between C and C.utf-8 locale? the sort manual says to use LC_ALL=C to sort by byte value, but i saw that C.utf-8 allows also utf8 values (and not just ASCII) ...
0
votes
2answers
26 views

List available (downloaded) languages in linux?

How can we see which languages are available to use in the linux terminal (i.e. already downloaded)? I read that English is always available, but I am not sure which others are (without downloading ...
2
votes
0answers
45 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'...
0
votes
0answers
55 views

sorting order unaffected by LC_ALL

I'm experiencing a problem with sorting order. With this sample file the sort order on my local environment differs from any other system I tested this on. The locales are the same on both systems. ...
0
votes
0answers
8 views

KDE Locale detailed settings

Is there any way to have system in US language but use metric system and most importantly use non-us date format, that is day before month? The problem is when i set regional settings, detailed ...
1
vote
1answer
114 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 ...
0
votes
0answers
19 views

Firefox starts up in Japanese from GUI, in English from command line

I've just installed CentOS 8 (build 1905). I use the system in English (with Hebrew as a secondary relevant language) - not in Japanese. After some initial activity (which doesn't involve playing ...
3
votes
1answer
245 views

Create a new locale on FreeBSD

I'd like to create a new locale on FreeBSD. I thought that I can just copy one of the existing ones in /usr/share/locale but apparently it is not so simple. Firstly, I just create a copy of the en_US....
1
vote
1answer
745 views

How to install Debian 10 (Buster) in English language but with German locales?

Based on this question considering Debian 9 (Stretch), maybe there are some updates available. I want to use English language with German locales. Is there an option available to select this ...
0
votes
0answers
23 views

Posix locale unicode encodings; which is correct? [duplicate]

According to the GNU gettext manual, an example locale would be es_ES.UTF-8. Running locale -a on my Debian 9 system shows $ locale -a C C.UTF-8 en_GB.utf8 en_US.utf8 POSIX Notice the locale lists ...
1
vote
1answer
73 views

Fiddling with locale so that weeks start on Monday

I use the C.UTF-8 locale and all is well, I'm pretty happy with it but weeks starting on Sunday... Is there a single or combination locale setting that changes only the first day of the week, leaving ...
1
vote
3answers
93 views

How to set debian 9/10 and putty to show utf-8 chars?

Before opening this question, I google a lot and tried all the suggested fix Problem pm2 monit util is showed in this way instead of Strange this: pm2 list is showed right My remote system $ ...
0
votes
0answers
56 views

Glyphs from patched fonts not working on Debian

Im using the following patched fonts without issue in Arch linux to obtain glyphs in my terminal (e.g., in the vifm or ranger file managers): https://github.com/ryanoasis/nerd-fonts I installed the ...
29
votes
2answers
2k views

Which is the current decimal separator?

Say I have a POSIX shell script that needs to run on different systems/environments that I do not control, and needs to remove the decimal separator from a string that is emitted by a program that ...
1
vote
0answers
128 views

Why aren't my ~/.login_conf settings respected when ssh into FreeBSD?

I connect to a local FreeBSD server (which I administer) via ssh from my laptop. I have a stock FreeBSD 11.2 /etc/login.conf file. I have appended the following to my ~/.login_conf file: :me \ :...
1
vote
0answers
21 views

Linpus 9.4 (based on Fedora) change locale

I got old Linpus Linux 9.4 from 2007 into my hands and I just want to change locale. locale -a lists the locale I want, but there is no locale.conf in /etc/ or anywhere else. The distro should be ...
3
votes
1answer
876 views

How do I change the output of `date` back to 24-hour format?

Apparently a recent change (in Glibc 2.29?) causes the date command to start printing times in 12-hour format: $ date Fri 23 Aug 2019 07:34:13 PM PDT This is for my default locale $ cat /etc/locale....
0
votes
1answer
932 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? /...
2
votes
1answer
185 views

Debian 9.9: Can I set up a multi-lingual, multi-user system with locale?

In Debian I have set up multiple users. The OS was installed in English. Next I ran sudo dpkg-reconfigure locale and selected multiple other languages (such as German, Spanish, and French) and ...
2
votes
1answer
474 views

SFTP remote readdir Failure - national characters in file name

I have created a directory with national characters in it's name. I can see and browse this directory via ssh # cd /root # ls СтранноеРусскоеИмя but can't do it via SFTP: sftp> cd /root sftp>...
4
votes
1answer
78 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 ...
0
votes
0answers
35 views

Fedora Thunderbird language

----------------------------- OS: Fedora release 30 (Thirty) x86_64 Host: Latitude 5580 Kernel: 5.1.8-300.fc30.x86_64 Uptime: 6 hours, 52 mins Shell: zsh 5.7.1 Resolution: 1920x1080 DE: KDE WM:...
2
votes
1answer
204 views

what's the difference between /etc/locale.conf and /etc/environment?

What's the difference between the following files in CentOS 7? /etc/locale.conf /etc/environment ~/.bashrc
3
votes
0answers
30 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 ...
0
votes
0answers
19 views

Locale does not work with “file” command output

I have some JPEG files with Description metadata I added in MAC OS. exiftool (in MAC) displays them in correct locale. I copied those files to a Raspbian OS. From command line or bash script ...
0
votes
2answers
360 views

The fr_FR.UTF-8 and C.UTF-8 locales are not available in the locale list therefore I cannot use them [closed]

The fr_FR.UTF-8 and C.UTF-8 locales are not available in the locale list (given by locale -a) therefore I cannot use them. Here is what I did to try and add them : $ sudo locale-gen en_US en_US.UTF-...
3
votes
1answer
248 views

Neomutt - Can't display Swedish characters

I have an issue regarding neomutt not displaying the Swedish characters å, ä and ö. When typing locale in the terminal I get: LANG=sv_SE.UTF-8 LC_CTYPE=sv_SE.UTF-8 LC_NUMERIC=sv_SE.UTF-8 LC_TIME=...
0
votes
0answers
439 views

OVH Arch Linux Locale Cannot Set LC_CTYPE & LC_ALL cannot change locale & NextCloud set locale failed

After booting into the recovery system and backing up the files, the locale for my NextCloud broke. It says "Setting locale to en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/...
0
votes
1answer
216 views

What character encoding is used for Linux configuration files?

A colleague was using Qt's built-in QTextStream class to rewrite the /etc/network/interfaces file on an Ubuntu system. Part of that code included a call to QTextStream's setCodec() method, where the ...
1
vote
1answer
390 views

KDE settings + locale - Cannot set LC_ALL to default locale: No such file or directory

In the KDE-settings I can set my language and formats to different locales. It lets me choose between a bunch of them. In this list also is the locale en_DE.UTF-8 (it's listed as en_DE though). ...
4
votes
1answer
749 views

Change lightdm keyboard layout US to Portuguese Arch Linux

I'm installing Arch Linux, but I have a problem with the installation of my display manager, lightdm. When I install and enable lightdm, I think the keyboard layout changes from Portuguese to US. ...
2
votes
0answers
102 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 ...
1
vote
2answers
168 views

How to sort comma-thousand separated numbers while on other locale

I have a German locale and need to sort US formatted numbers with commas as the thousands separator. Seems I don't override the locale properly? sort --version sort (GNU coreutils) 8.30 Example: ...
6
votes
1answer
570 views

“sort -g” does not work as expected on data in scientific notation

I am trying to sort a data file in descending order. The data file is given by three columns delimited by tabs; I want to order them in descending order for the third column with (the third column is ...
0
votes
0answers
21 views

Add locale in variable for command [duplicate]

I'm trying to call a command from a variable in a script with a specific locale, example : $ myYTDL="LANG=C.UTF-8 youtube-dl --get-filename" but each time I try and call it in the script, I get : $ ...
0
votes
1answer
119 views

Wildcards/Globbing: Are character ranges problematic?

In The Linux Command Line William Shotts claims that character ranges can be problematic. See the relevant excerpt below, emphasis is mine. Character Ranges If you are coming from another Unix-...
1
vote
1answer
227 views

Grep to find a word matching a specific pattern and ignore accents

This is a homework question that I have only been able to partially solve. I want to use grep to find words in a list that contain three 'e's separated by 't's, and also do an accent insensitive ...
1
vote
0answers
40 views

Why does Wine do not have key registry “LocaleName”?

I using Windows registry, but I happened to find application which relies on registry key LocaleName. Thanks to Wine's regedit, I found some keys linked to region settings (Locale, sCountry, sLanguage,...

1
2 3 4 5
9