Hi, I get this today when starting mc in konsole or xterm, after a restart of the session: https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts. cer@Laicolasse:~/Photos/ScreenShots> locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_DK.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=es_ES.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= cer@Laicolasse:~/Photos/ScreenShots> It is all UTF-8. It is the same locale I used in XFCE, but now KDE is not working right. Ideas? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On 2023-11-04 21:43, Carlos E. R. wrote:
Hi,
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
cer@Laicolasse:~/Photos/ScreenShots> locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_DK.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=es_ES.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= cer@Laicolasse:~/Photos/ScreenShots>
It is all UTF-8. It is the same locale I used in XFCE, but now KDE is not working right.
Ideas?
I noticed something else. On a Konsole tab that was opened directly when start session restored the previous session with some Konsoles, in those previously existing tabs, 'mc' works perfectly fine. cer@Laicolasse:~> locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_DK.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=es_ES.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= cer@Laicolasse:~> Seems the same to me. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On 2023-11-04 21:48, Carlos E. R. wrote:
On 2023-11-04 21:43, Carlos E. R. wrote:
I reorganized my locale which now is: cer@Laicolasse:~> locale LANG=en_US.utf8 LC_CTYPE=en_US.utf8 LC_NUMERIC=es_ES.utf8 LC_TIME=en_DK.utf8 LC_COLLATE=en_US.utf8 LC_MONETARY=es_ES.utf8 LC_MESSAGES=en_US.utf8 LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.utf8 LC_IDENTIFICATION=en_US.utf8 LC_ALL= cer@Laicolasse:~> because: cer@Laicolasse:~> locale -a | grep es_ES es_ES es_ES@euro es_ES.utf8 cer@Laicolasse:~> locale -a | grep en_CA en_CA en_CA.utf8 cer@Laicolasse:~> locale -a | grep en_US en_US en_US.iso885915 en_US.utf8 cer@Laicolasse:~> locale -a | grep en_DK en_DK en_DK.utf8 cer@Laicolasse:~> But has no effect on my problem.
Ideas?
I noticed something else. On a Konsole tab that was opened directly when start session restored the previous session with some Konsoles, in those previously existing tabs, 'mc' works perfectly fine.
I exported on the working konsole tab the entire environment to a file set > p1 and the non working set > p2 Then compared both: changing the locale to .i18n cer@Laicolasse:~> diff p1 p2 27c27 < GPG_TTY=/dev/pts/10 ---
GPG_TTY=/dev/pts/21 55c55,56 < KONSOLE_DBUS_SESSION=/Sessions/2
KONSOLE_DBUS_SESSION=/Sessions/15 KONSOLE_DBUS_WINDOW=/Windows/1 57c58 < LANG=en_US.UTF-8
LANG=en_US.utf8 60a62,64 LC_COLLATE=en_US.utf8 LC_CTYPE=en_US.utf8 LC_IDENTIFICATION=en_US.utf8 61a66 LC_MESSAGES=en_US.utf8 64c69 < LC_NUMERIC=es_ES.UTF-8
LC_NUMERIC=es_ES.utf8 67c72 < LC_TIME=en_DK.UTF-8
LC_TIME=en_DK.utf8 106c111 < SHELL_SESSION_ID=37091e315c6b421bbf4b8d2f15dc85fb
SHELL_SESSION_ID=5a70592e431d4a21ab78334fd74cf856 138c143 < _=set
_=locale cer@Laicolasse:~>
Do you see something that could cause this problem? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
Carlos E. R. composed on 2023-11-04 21:43 (UTC+0100):
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
cer@Laicolasse:~/Photos/ScreenShots> locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_DK.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=es_ES.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= cer@Laicolasse:~/Photos/ScreenShots>
It is all UTF-8. It is the same locale I used in XFCE, but now KDE is not working right.
That has happened to me in various installations at various times, and not in Plasma lately, so I don't remember what the solutions have been, but possibly in one of these two: https://bugzilla.opensuse.org/show_bug.cgi?id=1203617 https://bugzilla.opensuse.org/show_bug.cgi?id=1212342 IIRC, there may have been a thread about it in one of the opensuse.org mailing lists not too long back, June maybe. If not, then in mc-devel@lists.midnight-commander.org I'm not sure this is related, but not long ago I added alias mc='source /usr/share/mc/mc-wrapper.sh' to /etc/bash.bashrc.local. BTW, I don't use the broken old official Leap MC version. Instead, I use 4.8.30 from this repo: [homeEcsosMC] baseurl=https://download.opensuse.org/repositories/home:/ecsos/15.5/ enabled=1 gpgcheck=1 gpgkey=https://download.opensuse.org/repositories/home:/ecsos/15.5/repodata/repomd.... name=homeEcsosMC type=rpm-md Its owner is responsible for the newest changelog entry in the official release version 4.8.27. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 2023-11-04 22:08, Felix Miata wrote:
Carlos E. R. composed on 2023-11-04 21:43 (UTC+0100):
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
...
It is all UTF-8. It is the same locale I used in XFCE, but now KDE is not working right.
And it worked right yesterday. There was a crash (the desktop froze) tonight.
That has happened to me in various installations at various times, and not in Plasma lately, so I don't remember what the solutions have been, but possibly in one of these two: https://bugzilla.opensuse.org/show_bug.cgi?id=1203617
Bug 1203617 - In plasma5 midnight commander doesn't exit to current directory anymore Appears this as recommendation for TW: echo "alias mc='source /usr/share/mc/mc-wrapper.sh'" >> ~/.bashrc but there is further working on it for the solution. Otherwise, doesn't seem to be related to my problem.
Duplicate of the previous bugzilla above.
IIRC, there may have been a thread about it in one of the opensuse.org mailing lists not too long back, June maybe. If not, then in mc-devel@lists.midnight-commander.org
I'm not sure this is related, but not long ago I added
alias mc='source /usr/share/mc/mc-wrapper.sh'
to /etc/bash.bashrc.local.
I just started mc by calling that script, the problem persists. This has been the second thing I tried from your post.
BTW, I don't use the broken old official Leap MC version. Instead, I use 4.8.30 from this repo:
[homeEcsosMC] baseurl=https://download.opensuse.org/repositories/home:/ecsos/15.5/ enabled=1 gpgcheck=1 gpgkey=https://download.opensuse.org/repositories/home:/ecsos/15.5/repodata/repomd.... name=homeEcsosMC type=rpm-md
Its owner is responsible for the newest changelog entry in the official release version 4.8.27.
Ah! Thanks for that, just installed it. But doesn't solve the problem (I tried this first). cer@Laicolasse:~> mc --version GNU Midnight Commander 4.8.30 Built with GLib 2.70.5 Built with S-Lang 2.3.1a with terminfo database Built with libssh2 1.11.0 With builtin Editor With subshell support as default With support for background operations With mouse support on xterm and Linux console With support for X11 events With internationalization support With multiple codepages support With ext2fs attributes support Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; cer@Laicolasse:~> -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On 2023-11-04 21:43, Carlos E. R. wrote:
Hi,
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
It is these two in .i18n, either of them produce error: LC_ALL=en_US.utf8 LC_TIME=en_DK.utf8 Weird. On XFCE there was no problem. If I leave the line commented out in .i18n file, it works. If I activate the line, then do: cer@Laicolasse:~> unset LC_TIME ; mc doesn't work. It doesn't matter what I set that var in .i18n file. This .i18 file works: #LC_ALL="es_ES.utf8" LANG="es_ES.utf8" LC_MESSAGES="en_US.utf8" #LC_TIME="en_DK.utf8" This other doesn't: #LC_ALL="es_ES.utf8" LANG="es_ES.utf8" LC_MESSAGES="en_US.utf8" LC_TIME="en_DK.utf8" The working file produces this locale: cer@Laicolasse:~> locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=es_ES.utf8 LC_CTYPE=en_US.utf8 LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_SE.UTF-8 LC_COLLATE=en_US.utf8 LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=en_US.utf8 LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=en_US.utf8 LC_ALL= cer@Laicolasse:~> The non working file produces this locale: cer@Laicolasse:~> locale LANG=es_ES.utf8 LC_CTYPE=en_US.utf8 LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_DK.utf8 LC_COLLATE=en_US.utf8 LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=en_US.utf8 LC_PAPER=es_ES.utf8 LC_NAME=es_ES.utf8 LC_ADDRESS=es_ES.utf8 LC_TELEPHONE=es_ES.utf8 LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=en_US.utf8 LC_ALL= cer@Laicolasse:~> I'm confused :-( -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
* Carlos E. R. <robin.listas@telefonica.net> [11-04-23 21:48]:
On 2023-11-04 21:43, Carlos E. R. wrote:
Hi,
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
It is these two in .i18n, either of them produce error:
LC_ALL=en_US.utf8
LC_TIME=en_DK.utf8
Weird. On XFCE there was no problem.
If I leave the line commented out in .i18n file, it works.
If I activate the line, then do:
cer@Laicolasse:~> unset LC_TIME ; mc
doesn't work.
It doesn't matter what I set that var in .i18n file.
I use in this order: LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.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_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
On 2023-11-05 02:47, Carlos E. R. wrote:
On 2023-11-04 21:43, Carlos E. R. wrote:
Hi,
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
...
I'm confused :-(
I found a method that works, more or less: cer@Laicolasse:~> cat .i18n LANG="es_ES.utf8" LC_MESSAGES="en_US.utf8" #Warning: do not export LC_TIME in KDE, breaks KDE. if [ "a$XDG_CURRENT_DESKTOP" = aKDE ]; then #unset LC_TIME echo . else LC_TIME="en_DK.utf8" fi cer@Laicolasse:~> cat .bashrc ... if [ "a$XDG_CURRENT_DESKTOP" = aKDE ]; then . ~/.i18n echo "changing the locale to .i18n" # Some variables don't get exported. Only these work: # cer@Laicolasse:~> env | grep -E 'LANG|LC_' # LC_MEASUREMENT=es_ES.utf8 # LC_MONETARY=es_ES.Utf8 # LC_NUMERIC=es_ES.UTF-8 # LC_TELEPHONE=es_ES.utf8 # LC_TIME=en_DK.UTF-8 # cer@Laicolasse:~> # <https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/KWXIW4SCJRI2WCC22QEJ26IM5ARGZFL5/> export LANG export LC_CTYPE export LC_NUMERIC export LC_TIME export LC_COLLATE export LC_MONETARY export LC_MESSAGES export LC_PAPER export LC_NAME export LC_ADDRESS export LC_TELEPHONE export LC_MEASUREMENT export LC_IDENTIFICATION export LC_ALL fi This results in this locale: cer@Laicolasse:~> locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=es_ES.utf8 LC_CTYPE="es_ES.utf8" LC_NUMERIC=es_ES.UTF-8 LC_TIME=en_SE.UTF-8 LC_COLLATE="es_ES.utf8" LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=en_US.utf8 LC_PAPER="es_ES.utf8" LC_NAME="es_ES.utf8" LC_ADDRESS="es_ES.utf8" LC_TELEPHONE="es_ES.utf8" LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION="es_ES.utf8" LC_ALL= cer@Laicolasse:~> Notice that this one does not exist: LC_TIME=en_SE.UTF-8 so it is problematic. Yet KDE regional settings allows setting it. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
Carlos E. R. composed on 2023-11-04 12:43 (UTC+0100):
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
Is your Konsole opening to /bin/sh, or to /bin/bash? I think my problem was with opening to /bin/sh instead of /bin/bash. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 2023-11-05 05:57, Felix Miata wrote:
Carlos E. R. composed on 2023-11-04 12:43 (UTC+0100):
I get this today when starting mc in konsole or xterm, after a restart of the session:
https://susepaste.org/258b880e91ad https://paste.opensuse.org/258b880e91ad
This is unusable. It might be related to my locale or to the font used. I haven't done any change to fonts.
Is your Konsole opening to /bin/sh, or to /bin/bash? I think my problem was with opening to /bin/sh instead of /bin/bash.
Bash, of course. And with a script described in <https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/KWXIW4SCJRI2WCC22QEJ26IM5ARGZFL5/> <https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/3WHGRBGVHVSUCIJ3DKUR7R5Z3TEV7MKI/> -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
participants (3)
-
Carlos E. R.
-
Felix Miata
-
Patrick Shanahan