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.
Please include output of "env" in a terminal
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
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
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.
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!
marking bug as "reported"
Still have this problem on Kubuntu 20.04
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.
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.
*** This bug has been marked as a duplicate of bug 403580 ***