[opensuse-support] LANG=POSIX instead of wanted en_US.UTF-8
Hello, on relatively simple minimal installation (small web server in VM) on Leap 15.1 I try to install GitLab, but it complains: Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings. So I checked settings: # locale LANG=POSIX LC_CTYPE=en_US.UTF-8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= # localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: n/a # cat /etc/locale.conf LANG=en_US.UTF-8 # echo $LANG POSIX I changed all LC_* variables to en_US.UTF-8 in YaST /etc/sysconfig Editor, so it seems to be correct in /etc/sysconfig/language but there is no change in the above outputs. Not even after reboot. ;-) It seems it helps if I manually export LANG='en_US.UTF-8', but this seems bit weird to me. I'd have to do such export after every boot. GitLab is the first application to complain, everything else works well, no problems with locales, encodings or so. But still, I wonder how to properly set locales to en_US.UTF-8...? I'd expect YaST to do the job. Yours, -- Vojtěch Zeisek https://trapa.cz/ Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/
On Wed, May 27, 2020 at 3:24 PM Vojtěch Zeisek <vojtech.zeisek@opensuse.org> wrote:
Hello, on relatively simple minimal installation (small web server in VM) on Leap 15.1 I try to install GitLab, but it complains:
Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
So I checked settings:
# locale LANG=POSIX LC_CTYPE=en_US.UTF-8 LC_NUMERIC="POSIX"
What is the value of ROOT_USES_LANG in /etc/sysconfig/language? -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Dne středa 27. května 2020 14:33:27 CEST, Andrei Borzenkov napsal(a):
On Wed, May 27, 2020 at 3:24 PM Vojtěch Zeisek wrote:
Hello, on relatively simple minimal installation (small web server in VM) on Leap 15.1 I try to install GitLab, but it complains:
Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
# locale LANG=POSIX LC_CTYPE=en_US.UTF-8 LC_NUMERIC="POSIX"
What is the value of ROOT_USES_LANG in /etc/sysconfig/language?
ROOT_USES_LANG="ctype" -- Vojtěch Zeisek https://trapa.cz/ Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/
On Wed, May 27, 2020 at 3:41 PM Vojtěch Zeisek <vojtech.zeisek@opensuse.org> wrote:
Dne středa 27. května 2020 14:33:27 CEST, Andrei Borzenkov napsal(a):
On Wed, May 27, 2020 at 3:24 PM Vojtěch Zeisek wrote:
Hello, on relatively simple minimal installation (small web server in VM) on Leap 15.1 I try to install GitLab, but it complains:
Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
# locale LANG=POSIX LC_CTYPE=en_US.UTF-8 LC_NUMERIC="POSIX"
What is the value of ROOT_USES_LANG in /etc/sysconfig/language?
ROOT_USES_LANG="ctype"
Which matches what you get as root. See comments for this variable, you likely need "all" (not having openSUSE right now available, so do not remember exact name). It is also configurable in YaST. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Dne středa 27. května 2020 14:55:32 CEST, Andrei Borzenkov napsal(a):
On Wed, May 27, 2020 at 3:41 PM Vojtěch Zeisek wrote:
Dne středa 27. května 2020 14:33:27 CEST, Andrei Borzenkov napsal(a):
On Wed, May 27, 2020 at 3:24 PM Vojtěch Zeisek wrote:
on relatively simple minimal installation (small web server in VM) on Leap 15.1 I try to install GitLab, but it complains:
Environment variable LANG specifies a non-UTF-8 locale. GitLab requires UTF-8 encoding to function properly. Please check your locale settings.
# locale LANG=POSIX LC_CTYPE=en_US.UTF-8 LC_NUMERIC="POSIX"
What is the value of ROOT_USES_LANG in /etc/sysconfig/language?
ROOT_USES_LANG="ctype"
Which matches what you get as root. See comments for this variable, you likely need "all" (not having openSUSE right now available, so do not remember exact name). It is also configurable in YaST.
Yes! That was the trick. Thank You! The desired value is "yes". Value "ctype" means that root uses just LC_CTYPE. Value "yes" means that root uses the full settings. -- Vojtěch Zeisek https://trapa.cz/ Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/
participants (2)
-
Andrei Borzenkov
-
Vojtěch Zeisek