Bug 416103 - Adjusting Detailed Settings for Regional Settings breaks locale
Summary: Adjusting Detailed Settings for Regional Settings breaks locale
Status: RESOLVED DUPLICATE of bug 403580
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_formats (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-10 23:14 UTC by Alexander
Modified: 2021-10-05 17:13 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
mc screenshot (387.56 KB, image/png)
2020-01-10 23:14 UTC, Alexander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2020-01-10 23:14:48 UTC
Created attachment 125025 [details]
mc screenshot

SUMMARY

I use System Settings - Regional Settings - Formats to set my Region as United States and then I adjust this locale using Detailed Settings.
I set Time and Measurement Units to en_DK locale.

It is a well known partial workaround for a complete impossibility to precisely adjust locale in KDE Plasma 5. 

As I remember it worked half a year ago, but now, if I change something in Detailed Settings I get an error in "locale" command.

locale: Cannot set LC_ALL to default locale: no such file or directory.

I also get broken pseudographics in Midnight Commander and errors when using Perl scripts - for example if I try to enter into zip archive using Midnight Commander (see screenshot).

I also found that usage of "Default" locale in Detailed Settings does not entail such bad effects.
Comment 1 David Edmundson 2020-01-15 00:43:55 UTC
Please include output of "env" in a terminal
Comment 2 Alexander 2020-01-15 12:41:27 UTC
If I use en_DK in Detailed Settings:

siralex@chromebook:~$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_DK.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

siralex@chromebook:~$ env
KDE_FULL_SESSION=true
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LC_MEASUREMENT=en_DK.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
LC_PAPER=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LANG=en_US.UTF-8
PROFILEHOME=
DISPLAY=:0
SHELL_SESSION_ID=75fbcf072ac341a0a31ba7d3f5ffcdf0
COLORTERM=truecolor
XDG_VTNR=1
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
SSH_AUTH_SOCK=/tmp/ssh-PmsXdIgEQcnF/agent.864
MANDATORY_PATH=/usr/share/gconf//usr/share/xsessions/plasma.mandatory.path
LC_NAME=en_US.UTF-8
XDG_SESSION_ID=3
USER=siralex
DESKTOP_SESSION=/usr/share/xsessions/plasma
LC_COLLATE=en_US.UTF-8
KONSOLE_VERSION=191201
DEFAULTS_PATH=/usr/share/gconf//usr/share/xsessions/plasma.default.path
PWD=/home/siralex
HOME=/home/siralex
LC_CTYPE=en_US.UTF-8
SSH_AGENT_PID=912
QT_ACCESSIBILITY=1
XDG_SESSION_TYPE=x11
XDG_DATA_DIRS=/usr/share//usr/share/xsessions/plasma:/home/siralex/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
KONSOLE_DBUS_SESSION=/Sessions/1
XDG_SESSION_DESKTOP=KDE
LC_ADDRESS=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
KONSOLE_DBUS_WINDOW=/Windows/1
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.40
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XCURSOR_THEME=breeze_cursors
XDG_CURRENT_DESKTOP=KDE
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XDG_SEAT=seat0
SHLVL=1
COLORFGBG=0;15
LANGUAGE=en_US.UTF-8
WINDOWID=4194311
LC_TELEPHONE=en_US.UTF-8
LOGNAME=siralex
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/siralex/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
QT_AUTO_SCREEN_SCALE_FACTOR=0
XDG_CONFIG_DIRS=/etc/xdg/xdg-/usr/share/xsessions/plasma:/etc/xdg
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LC_IDENTIFICATION=en_US.UTF-8
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
SESSION_MANAGER=local/chromebook:@/tmp/.ICE-unix/973,unix/chromebook:/tmp/.ICE-unix/973
LESSOPEN=| /usr/bin/lesspipe %s
LC_TIME=en_DK.UTF-8
_=/usr/bin/env
Comment 3 Alexander 2020-01-15 12:42:51 UTC
If I use Default(C) in Detailed Settings (no errors):

siralex@chromebook:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=C
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=C
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

siralex@chromebook:~$ env
KDE_FULL_SESSION=true
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LC_MEASUREMENT=C
LESSCLOSE=/usr/bin/lesspipe %s %s
LC_PAPER=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LANG=en_US.UTF-8
PROFILEHOME=
DISPLAY=:0
SHELL_SESSION_ID=cc88b11bae6d46fcad682a7d93df959c
COLORTERM=truecolor
XDG_VTNR=1
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
SSH_AUTH_SOCK=/tmp/ssh-VqTH6JxWb8uk/agent.869
MANDATORY_PATH=/usr/share/gconf//usr/share/xsessions/plasma.mandatory.path
LC_NAME=en_US.UTF-8
XDG_SESSION_ID=3
USER=siralex
DESKTOP_SESSION=/usr/share/xsessions/plasma
LC_COLLATE=en_US.UTF-8
KONSOLE_VERSION=191201
DEFAULTS_PATH=/usr/share/gconf//usr/share/xsessions/plasma.default.path
PWD=/home/siralex
HOME=/home/siralex
LC_CTYPE=en_US.UTF-8
SSH_AGENT_PID=918
QT_ACCESSIBILITY=1
XDG_SESSION_TYPE=x11
XDG_DATA_DIRS=/usr/share//usr/share/xsessions/plasma:/home/siralex/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
KONSOLE_DBUS_SESSION=/Sessions/1
XDG_SESSION_DESKTOP=KDE
LC_ADDRESS=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
KONSOLE_DBUS_WINDOW=/Windows/1
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.40
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XCURSOR_THEME=breeze_cursors
XDG_CURRENT_DESKTOP=KDE
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XDG_SEAT=seat0
SHLVL=1
COLORFGBG=0;15
LANGUAGE=en_US.UTF-8
WINDOWID=4194311
LC_TELEPHONE=en_US.UTF-8
LOGNAME=siralex
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/siralex/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
QT_AUTO_SCREEN_SCALE_FACTOR=0
XDG_CONFIG_DIRS=/etc/xdg/xdg-/usr/share/xsessions/plasma:/etc/xdg
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LC_IDENTIFICATION=en_US.UTF-8
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
SESSION_MANAGER=local/chromebook:@/tmp/.ICE-unix/978,unix/chromebook:/tmp/.ICE-unix/978
LESSOPEN=| /usr/bin/lesspipe %s
LC_TIME=C
_=/usr/bin/env
Comment 4 Alexander 2020-01-15 12:57:23 UTC
Currently I'm using Default(C) locale in Detailed Settings but I don't like its short time format, which includes seconds.

I'd rather use en_150 locale in Detailed Settings but it causes errors too.

I also can't use en_150 as a main locale (Region settings) with Detailed Settings  disabled - en_150 seems incomplete or something and suitable only to adjust time and date. It causes more errors in "locale" output.
Comment 5 Bug Janitor Service 2020-01-30 04:33:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Alexander 2020-01-30 10:03:00 UTC
marking bug as "reported"
Comment 7 Alexander 2020-06-10 00:16:19 UTC
Still have this problem on Kubuntu 20.04
Comment 8 Nate Graham 2021-09-30 17:38:32 UTC
I'm not sure this is a bug in the KCM. Your `locale` output shows that LC_TIME is being set to what you specified. And LC_ALL being unset is not a problem--in fact yo don't want it set, because it would override your cusrom LC_TIME value. If apps aren't responding properly, those are bugs in apps. If running `locale` causes an error, it would be caused by incomplete locale support installed on your machine.
Comment 9 hanyoung 2021-10-05 17:12:53 UTC
This bug is caused by en_DK is not a valid locale in your system. The KCM sets the locale but doesn't generate them. This will be fixed in the future.
Comment 10 Nate Graham 2021-10-05 17:13:52 UTC

*** This bug has been marked as a duplicate of bug 403580 ***