Public bug reported:

Binary package hint: coreutils

1) lsb_release -rd
Description:    Ubuntu 10.10
Release:        10.10

2) apt-cache policy coreutils
coreutils:
  Installed: 8.5-1ubuntu3
  Candidate: 8.5-1ubuntu3
  Version table:
 *** 8.5-1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen is when one performs at the Terminal:

wget
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/714440/+attachment/1880244/+files/0-Drukowanie%20strony%20tytu%C5%82owej.odt

then either:

mv 0-Drukowanie\ strony\ tytu\305%82owej.odt example.odt
mv '0-Drukowanie\ strony\ tytu\305%82owej.odt' example.odt
mv "0-Drukowanie\ strony\ tytu\305%82owej.odt" example.odt
mv 0-Drukowanie strony tytu�%82owej.odt (invalid encoding) example.odt
mv '0-Drukowanie strony tytu�%82owej.odt (invalid encoding)' example.odt

At least one of the above commands renames the downloaded file to
example.odt

4) What happened instead is none of the commands rename the file:

mv 0-Drukowanie\ strony\ tytu\305%82owej.odt example.odt
mv: cannot stat `0-Drukowanie strony tytu305%82owej.odt': No such file or 
directory

mv '0-Drukowanie\ strony\ tytu\305%82owej.odt' example.odt
mv: cannot stat `0-Drukowanie\\ strony\\ tytu\\305%82owej.odt': No such file or 
directory

mv "0-Drukowanie\ strony\ tytu\305%82owej.odt" example.odt
mv: cannot stat `0-Drukowanie\\ strony\\ tytu\\305%82owej.odt': No such file or 
directory

mv '0-Drukowanie strony tytu�%82owej.odt (invalid encoding)' example.odt
mv: cannot stat `0-Drukowanie strony tytu�%82owej.odt (invalid encoding)': No 
such file or directory

mv 0-Drukowanie strony tytu�%82owej.odt (invalid encoding) example.odt
bash: syntax error near unexpected token `('

WORKAROUND: Secondary click the icon on the Desktop -> click Rename...
-> change it from:

0-Drukowanie strony tytu�%82owej.odt (invalid encoding)

to:

example.odt

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: coreutils 8.5-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
Uname: Linux 2.6.35-27-generic i686
Architecture: i386
Date: Wed Mar  2 12:45:00 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: coreutils

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/727937

Title:
  mv command not renaming file with invalid encoding

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to