UTF-8 file name saved incorrectly

Bug #311742 reported by era
2
Affects Status Importance Assigned to Milestone
VLC media player
Fix Released
Unknown
vlc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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

Revision history for this message
Rémi Denis-Courmont (rdenis) wrote :

How exactly did you "[try] to save the file"?

Changed in vlc:
assignee: nobody → rdenis
status: New → Incomplete
Revision history for this message
era (era) wrote :

Media > Convert / Save ... > Disc tab
Select DVD chapter etc, click Convert / Save button
In the resulting Stream Output dialog box, select Ogg Theora profile
Check the "File" checkbox and type "Törnrosa.ogg" in the Filename box
Click "Save"

Actually even before clicking Save you can observe in the "Generated stram output string" text field near the bottom of the dialog that the filename with the accented character contains wrecked UTF8 (apparently interpreted as Latin-1 and incorrectly converted from Latin to UTF8 although it was already UTF8; at least, the wrecked strings I've seen would typically be a symptom of that).

Changed in vlc:
status: Incomplete → New
Revision history for this message
Rémi Denis-Courmont (rdenis) wrote :

I have this upstream too.

Changed in vlc:
assignee: rdenis → nobody
status: New → Confirmed
Changed in vlc:
status: Unknown → Confirmed
Revision history for this message
Rémi Denis-Courmont (rdenis) wrote :
Changed in vlc:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vlc - 1.0.0~rc2-1ubuntu1

---------------
vlc (1.0.0~rc2-1ubuntu1) karmic; urgency=low

  * New upstream version.
  * tighten build-dependencies on libschroedinger-dev, fixes FTBFS.
  * Following bugs have an associated and now closed upstream ticket in
    Launchpad: LP: #281295, #73449, #282567, #117640, #172938, #260918,
    #273685, #275043, #277834, #282394, #290753, #294136, #298925, #304265,
    #309728, #311742, #314038

vlc (1.0.0~rc2-1) experimental; urgency=low

  * New Upstream Release Candidate
    + Closes: #527010, #491441, #508618, #522824
  * Delete patches which were picked from upstream
  * Refresh patches
  * Remove vlc-plugin-esd and vlc-plugin-arts as they have been removed
    by upstream
  * SONAME change for libvlccore
  * Add new symbols for libvlc2
  * Fix static libs compile
  * Use vlc-wrapper manpage from upstream
  * vlc.install: add drawable and screen was renamed x11_screen
  * vlc-nox.install: Add and remove modules added/removed upstream
  * Point out in NEWS the modules renamed or splited
  * Add links to upstream NEWS and co in vlc-nox
  * Version the depedency of libvlcore2 on vlc-data
  * Remove unnecessary "Section:" in debian/control

vlc (0.9.9a-3) unstable; urgency=low

  * Correct typo in 0.9.9a-2 changelog entry
  * Disable more optimization with DEB_BUILD_OPTIONS=noopt
  * Cache the configure test results as we're running configure several
    times
  * Fix building as root
  * Fix the clean target
  * Remove unexistant config options
  * Better check commad line
  * Use all the procs on i386 and amd64
  * Build a version of libvlccore without altivec (Closes: #523035)
  * Fix typo (thanks to Salvatore Bonaccorso)(Closes: #528044)
  * Reword the command line to get full logs in bug/presubj (Closes: #527012)
  * Remove duplicate "extended Settings" entry in context menu
   (Closes: #526603) - thanks to Matt Kraai

 -- Reinhard Tartler <email address hidden> Fri, 05 Jun 2009 12:28:15 +0200

Changed in vlc (Ubuntu):
status: Confirmed → Fix Released
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.