Public bug reported: When using "Shell link", filenames with cyrillic or diacritic symbols are displayed as chains of numbers.
Ubuntu 24.04 mc - 3:4.8.30-1build2 and 3:4.8.30-1ubuntu0.1 with problems This ticket helps https://github.com/MidnightCommander/mc/commit/3c4941867aed0941e6c30048ee4430549e38fd04 Add this patch solves problem for me, please add it to upstream cat fix_cyrillic_via_shell.patch --- a/src/vfs/fish/helpers/ls +++ b/src/vfs/fish/helpers/ls @@ -123,9 +123,8 @@ perl -e ' use strict; use POSIX; -use Fcntl; -use POSIX ":fcntl_h"; #S_ISLNK was here until 5.6 -import Fcntl ":mode" unless defined &S_ISLNK; #and is now here +use Fcntl ":mode"; # ticket https://github.com/MidnightCommander/mc/commit/3c4941867aed0941e6c30048ee4430549e38fd04 S_ISLNK, S_IFMT, S_IMODE are here +use POSIX ":fcntl_h"; #S_ISLNK might be here as well my $dirname = $ARGV[0]; if (opendir (DIR, $dirname)) { while((my $filename = readdir (DIR))){ ** Affects: mc (Ubuntu) Importance: Undecided Status: Confirmed ** Tags: noble ** Description changed: When using "Shell link", filenames with cyrillic or diacritic symbols are displayed as chains of numbers. Ubuntu 24.04 mc - 3:4.8.30-1build2 and 3:4.8.30-1ubuntu0.1 with problems + This ticket helps https://github.com/MidnightCommander/mc/commit/3c4941867aed0941e6c30048ee4430549e38fd04 Add this patch solves problem for me, please add it to upstream cat fix_cyrillic_via_shell.patch --- a/src/vfs/fish/helpers/ls +++ b/src/vfs/fish/helpers/ls @@ -123,9 +123,8 @@ perl -e ' use strict; use POSIX; -use Fcntl; -use POSIX ":fcntl_h"; #S_ISLNK was here until 5.6 -import Fcntl ":mode" unless defined &S_ISLNK; #and is now here +use Fcntl ":mode"; # ticket https://github.com/MidnightCommander/mc/commit/3c4941867aed0941e6c30048ee4430549e38fd04 S_ISLNK, S_IFMT, S_IMODE are here +use POSIX ":fcntl_h"; #S_ISLNK might be here as well my $dirname = $ARGV[0]; if (opendir (DIR, $dirname)) { while((my $filename = readdir (DIR))){ ** Tags added: noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095158 Title: mc (Midnight commander) incorrect file names with cyrillic symbolls via ssh shell To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mc/+bug/2095158/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
