problems when "cd" to Directories with german umlauts and "_"

Bug #81621 reported by Erik Vetters
6
Affects Status Importance Assigned to Milestone
mc (Ubuntu)
Fix Released
Low
Unassigned
Declined for Feisty by Daniel T Chen

Bug Description

Binary package hint: mc

Hi,

mc in feisty has a problem when change dir, to Directories that contains german umlauts and "_". Maybe some other
characters are infected to ....

change dir works, but the a error message is thrown at the bottom:

"Can't not change dir to /home/$USER/ÖÖÖÖ" or "Can't change dir to /home/$USER/__test"

Greetings
Erik

Tags: mc
Revision history for this message
Erik Vetters (evetters) wrote :

Hi,

after a little debugging ....

Error message comes from src/subshell.c ( around line 810)

1.
Change in a subdirectory that contains no german umlauts and/or a "_" mc
never go to

if(subshell_alive) { ... } in function

void
do_subshell_chdir () {

}

and there

string subshell_cwd

and

string current_panel->cwd

are the same

2.
Change to a directory with german umlauts and/or "_"

mc goes to
if (subshell_alive)
   int subshell_alive is here 1 and before too

string subshell_cwd

and

string current_panel->cwd

are different,

current_panel->cwd = "contains the directory with umlauts and _ "
subshell_cwd = "contains the upper directory from current_panel->cwd"

Hope this helps ....

Greetings
Erik

description: updated
Revision history for this message
José M. López-Cepero (cepe) wrote :

I can confirm that with Spanish accents. Looks like an UTF-8 conversion problem to me. Maybe multibyte constants are not handled correctly somewhere in the shell code?

This error is very annoying, specially because it means that no shell command can be executed from the command line (the "can't change directory" message means that the shell remains on the parent directory, even though the correct directory is shown in the panel).

This is a regression comparing with the Edgy version, so IMHO it should be fixed before release.

Best regards.

Changed in mc:
status: Unconfirmed → Confirmed
Revision history for this message
dm (dmitry-shaposhnik) wrote :

Same thing here. Is threr any workarounds?

Revision history for this message
Daniel T Chen (crimsun) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 17 Feb 2007 21:26:54 -0500
Source: mc
Binary: mc
Architecture: source
Version: 1:4.6.1-6ubuntu1
Distribution: feisty
Urgency: low
Maintainer: Ubuntu MOTU Developers <email address hidden>
Changed-By: Daniel T Chen <email address hidden>
Description:
 mc - midnight commander - a powerful file manager
Changes:
 mc (1:4.6.1-6ubuntu1) feisty; urgency=low
 .
   * debian/patches/: Add 61_bash3.2_compat.patch from
     http://bugs.gentoo.org/show_bug.cgi?id=153925 (Closes: LP #81621,
     LP #85615).
Files:
 30605f696977c7c87dc1e1777a6a95d1 766 utils optional mc_4.6.1-6ubuntu1.dsc
 d26054618f2d9a90f1c6651672fbd463 114925 utils optional mc_4.6.1-6ubuntu1.diff.gz
Original-Maintainer: Stefano Melchior <email address hidden>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF17rre9GwFciKvaMRAj/vAJ9h0CDJOEFkIhu4Viuy3cYmYVEkogCgiY1d
KjrJEbglBHZUo6N4RyAYFz8=
=rVgd
-----END PGP SIGNATURE-----

Changed in mc:
importance: Undecided → Low
status: Confirmed → Fix Committed
Daniel T Chen (crimsun)
Changed in mc:
status: Fix Committed → Fix Released
Revision history for this message
José M. López-Cepero (cepe) wrote :

Fix tested and working. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.