usb-creator should not cast to str when the string could contain unicode data.

Bug #440719 reported by Romain Henriet
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Undecided
Unassigned
usb-creator (Ubuntu)
Fix Released
High
Evan

Bug Description

Binary package hint: python2.6

Kubuntu Karmic Beta
usb-creator-kde 0.2.7

usb-creator-kde can't open a .iso image when it is located in a directory with accentuated letters (/home/me/Téléchargements)

ProblemType: Crash
Architecture: amd64
Date: Fri Oct 2 19:09:17 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/python2.6
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: fglrx
Package: python2.6-minimal 2.6.2-3ubuntu1
ProcCmdline: /usr/bin/python /usr/bin/usb-creator-kde
ProcEnviron:
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 LANGUAGE=
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
PythonArgs: []
SourcePackage: python2.6
Title: python2.6 crashed with UnicodeEncodeError in add_file_source_dialog()
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/usbcreator/frontends/kde/frontend.py", line 389, in add_file_source_dialog
     filename = str(KFileDialog.getOpenFileName(KUrl(),filter))
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)
Uname: Linux 2.6.31-11-generic x86_64
UserGroups: vboxusers

Related branches

Revision history for this message
Romain Henriet (romain-henriet) wrote :
tags: removed: need-duplicate-check
affects: python2.6 (Ubuntu) → usb-creator (Ubuntu)
visibility: private → public
summary: - python2.6 crashed with UnicodeEncodeError in add_file_source_dialog()
+ usb-creator-kde crashed with UnicodeEncodeError in
+ add_file_source_dialog()
Changed in usb-creator (Ubuntu):
importance: Undecided → High
status: New → Triaged
tags: added: i18n kubuntu
Changed in usb-creator (Ubuntu):
assignee: nobody → Roderick B. Greening (roderick-greening)
Evan (ev)
summary: - usb-creator-kde crashed with UnicodeEncodeError in
- add_file_source_dialog()
+ usb-creator should not cast to str when the string could contain unicode
+ data.
Changed in usb-creator (Ubuntu):
assignee: Roderick B. Greening (roderick-greening) → Evan Dandrea (evand)
Adi Roiban (adiroiban)
Changed in ubuntu-translations:
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usb-creator - 0.2.10

---------------
usb-creator (0.2.10) karmic; urgency=low

  [ Cody A.W. Somerville ]
  * usbcreator/install.py:
    - Do not copy /syslinux/syslinux.cfg to root of disk, no longer needed.
    - Look at all files ending in .cfg under the syslinux directory when
      updating configuration files based on the options selected in usb-creator.
    - Strip tabs when parsing iso/syslinx config files to correctly identify
      commands in a syslinux config file that indents lines.

  [ Evan Dandrea ]
  * Small fixes to Cody's changes to the mangle_syslinux function:
    - Don't assume / is the path separator.
    - Add command line entries to the front, to avoid them being carried over
      to the installed system.
    - Write all lines, not just modified ones.
  * Properly set the icons in the source treeview. Thanks John S.
    Gruber (LP: #436469).
  * Handle the device no longer existing in fs_size (LP: #439001).
  * Update translations from Launchpad.

  [ Roderick B. Greening ]
  * Fix issues with UTF.8 (unicode) strings being cast to str
    (LP: #440719).
    - Updated KDE Front-end

 -- Evan Dandrea <email address hidden> Tue, 13 Oct 2009 11:08:16 +0100

Changed in usb-creator (Ubuntu):
status: Triaged → Fix Released
Aron Xu (happyaron)
tags: removed: amd64
Changed in ubuntu-translations:
status: Triaged → 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.