MadFile(x) segfaults if x is Unicode

Bug #414524 reported by mrdiskodave
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pymad (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-pymad

mad.MadFile(x) # segfaults if x is Unicode

mad.MadFile(unicode_to_utf8(x)) # is fine

def unicode_to_utf8(s):
    assert type(s)==type(u"x")
    return s.encode("utf-8")

ProblemType: Bug
Architecture: i386
Dependencies:
 libgcc1 1:4.3.3-5ubuntu4
 gcc-4.3-base 4.3.3-5ubuntu4
 libmad0 0.15.1b-4
 findutils 4.4.0-2ubuntu4
 libc6 2.9-4ubuntu6
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: python-pymad 0.5.4-3.2build2
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: pymad
Uname: Linux 2.6.28-13-generic i686

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.