[Midnight Commander] #4392: When connect to ssh server foldernames have strange characters

2 views
Skip to first unread message

Ticket System

unread,
Jul 24, 2022, 12:25:32 AM7/24/22
to re...@cobrasoft.nl, mc-...@googlegroups.com
#4392: When connect to ssh server foldernames have strange characters
--------------------------------+-------------------------------
Reporter: RemonK | Type: defect
Status: new | Priority: major
Milestone: Future Releases | Component: mc-core
Version: 4.8.24 | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------------+-------------------------------
When i connected to a ssh server via F9 -> Shellconnection the remote
file/foldernames have all the same strange characters and i can't enter
any of them. Example:

--------------------
?%s
?%s
?%s
?%s
?%s
?%s
?%s
?%s" -> "%s
?%s" -> "%s
?%s" -> "%s
?%s" -> "%s
--------------------

$ mc -V
GNU Midnight Commander 4.8.24
Built with GLib 2.63.3
Using the S-Lang library with terminfo database
With builtin Editor and Aspell support
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
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs,
sftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

$ mc -F
Home directory: /home/admin
Profile root directory: /home/admin

[System data]
Config directory: /etc/mc/
Data directory: /usr/share/mc/
File extension handlers: /usr/lib/mc/ext.d/
VFS plugins and scripts: /usr/lib/mc/
extfs.d: /usr/lib/mc/extfs.d/
fish: /usr/lib/mc/fish/

[User data]
Config directory: /home/admin/.config/mc/
Data directory: /home/admin/.local/share/mc/
skins: /home/admin/.local/share/mc/skins/
extfs.d: /home/admin/.local/share/mc/extfs.d/
fish: /home/admin/.local/share/mc/fish/
mcedit macros: /home/admin/.local/share/mc/mc.macros
mcedit external macros:
/home/admin/.local/share/mc/mcedit/macros.d/macro.*
Cache directory: /home/admin/.cache/mc/

$ mc --configuration-options
'--build=x86_64-linux-gnu' '--prefix=/usr' '--
includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--
infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '
--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-
maintainer-mode' '--disable-dependency-tracking' 'AWK=awk' 'X11_WWW=x-www-
browser' '--libexecdir=/usr/lib' '--with-x' '--with-screen=slang'
'--disable-rpath' '--disable-static' '--disable-silent-rules' '--enable-
aspell' '--enable-vfs-sftp' '--enable-vfs-undelfs' '--enable-tests'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build
/mc-R65bwp/mc-4.8.24=. -fstack-protector-strong -Wformat -Werror=format-
security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl
,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'

--
Ticket URL: <http://www.midnight-commander.org/ticket/4392>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Jul 24, 2022, 7:02:11 AM7/24/22
to re...@cobrasoft.nl, mc-...@googlegroups.com
#4392: When connect to ssh server foldernames have strange characters
--------------------------+---------------------------------------
Reporter: RemonK | Owner:

Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.24
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------

Comment (by RemonK):

I reverted back to version 4.8.19 and problem is solved!

--
Ticket URL: <http://www.midnight-commander.org/ticket/4392#comment:1>

Ticket System

unread,
Jul 24, 2022, 8:17:12 AM7/24/22
to re...@cobrasoft.nl, mc-...@googlegroups.com
#4392: When connect to ssh server foldernames have strange characters
--------------------------+---------------------------------------
Reporter: RemonK | Owner:

Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.24
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------

Old description:

> screen=slang' '--disable-rpath' '--disable-static' '--disable-silent-
> rules' '--enable-aspell' '--enable-vfs-sftp' '--enable-vfs-undelfs'
> '--enable-tests' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-


> prefix-map=/build/mc-R65bwp/mc-4.8.24=. -fstack-protector-strong -Wformat
> -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
> -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'

New description:

When i connected to a ssh server via F9 -> Shellconnection the remote
file/foldernames have all the same strange characters and i can't enter
any of them. Example:

{{{


?%s
?%s
?%s
?%s
?%s
?%s
?%s
?%s" -> "%s
?%s" -> "%s
?%s" -> "%s
?%s" -> "%s
}}}

{{{

--

Comment (by andrew_b):

Probably bad commit is [ec80df187c56bb7d5d442bd5b263fdd6b8425f19].

What is host you connect to? What are OS and shell there?

Do you have any scripts (especially `ls`) in
`/home/admin/.local/share/mc/fish/`?

--
Ticket URL: <http://www.midnight-commander.org/ticket/4392#comment:2>

Ticket System

unread,
Jul 24, 2022, 11:39:06 AM7/24/22
to re...@cobrasoft.nl, mc-...@googlegroups.com
#4392: When connect to ssh server foldernames have strange characters
--------------------------+---------------------------------------
Reporter: RemonK | Owner:

Type: defect | Status: new
Priority: major | Milestone: Future Releases
Component: mc-core | Version: 4.8.24
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+---------------------------------------

Comment (by RemonK):

Both computers have Linux Mint 20.2 Cinnamon and same MC version 4.8.24
(now both back to 4.8.19)
I have no fish folder in my local. I do have some scripts in
/usr/lib/mc/fish.

--
Ticket URL: <http://www.midnight-commander.org/ticket/4392#comment:3>

Reply all
Reply to author
Forward
0 new messages