[Bug 311742] [NEW] UTF-8 file name saved incorrectly

era era+launchpad.net at iki.fi
Sat Dec 27 14:51:20 UTC 2008


Public bug reported:

Binary package hint: vlc

When ripping a DVD with VLC, I tried to save the file as "Törnrosa.ogg",
but what ended up on the disk is named "Törnrosa.ogg".  I can tell that
other file names containing accented characters in the same directory
are displayed correctly with my current locale settings, so the problem
is not that the directory listing has mojibake when displayed -- the
file name VLC created has the actual mojibake.

(That's the Swedish title of the Disney classic _Sleeping Beauty_ FWIW.)

vnix$ ls -ld T*
-rw-r--r-- 1 era era 507301971 2008-12-27 16:30 Törnrosa.ogg
dr-xr-xr-x 2 era era      4096 2008-12-26 16:24 Törnrosa

vnix$ LC_ALL=C perl -le 'opendir(D, "."); while ($_ = readdir(D)) { print if /^T/ }' | od -ch
0000000   T 303 203 302 266   r   n   r   o   s   a   .   o   g   g  \n
        c354 c283 72b6 726e 736f 2e61 676f 0a67
0000020   T 303 266   r   n   r   o   s   a  \n
        c354 72b6 726e 736f 0a61

vnix$ locale
LANG=en_DK.UTF-8
LC_CTYPE="en_DK.UTF-8"
LC_NUMERIC="en_DK.UTF-8"
LC_TIME="en_DK.UTF-8"
LC_COLLATE="en_DK.UTF-8"
LC_MONETARY="en_DK.UTF-8"
LC_MESSAGES="en_DK.UTF-8"
LC_PAPER="en_DK.UTF-8"
LC_NAME="en_DK.UTF-8"
LC_ADDRESS="en_DK.UTF-8"
LC_TELEPHONE="en_DK.UTF-8"
LC_MEASUREMENT="en_DK.UTF-8"
LC_IDENTIFICATION="en_DK.UTF-8"
LC_ALL=

vnix$ lsb_release -rd
Description:	Ubuntu 8.10
Release:	8.10

vnix$ apt-cache policy vlc
vlc:
  Installed: 0.9.4-1ubuntu3
  Candidate: 0.9.4-1ubuntu3
  Version table:
 *** 0.9.4-1ubuntu3 0
        500 http://fi.archive.ubuntu.com intrepid/multiverse Packages
        100 /var/lib/dpkg/status

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

-- 
UTF-8 file name saved incorrectly
https://bugs.launchpad.net/bugs/311742
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


More information about the universe-bugs mailing list