Your message dated Wed, 17 Aug 2011 13:04:40 +0200
with message-id <[email protected]>
and subject line 
has caused the Debian Bug report #637878,
regarding playonlinux does not start with python2.7
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
637878: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637878
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: playonlinux
Version: 3.8.8-1
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch

User: [email protected]
Usertags: python2.7
Tags: sid wheezy

python2.7's locale.normalize does not accept unicode strings.
This leads to a startup problem of playonlinunx which passes
wx.Locale.GetCanonicalName() to it in /python/lib/lng.py:18

Attached patch fixes this issue by converting it to a regular string first.

Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/playonlinux/+bug/825421
Python bug:
http://bugs.python.org/issue12752

Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500,
'oneiric'), (100, 'oneiric-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-8-generic (SMP w/4 CPU cores)
=== added file 'debian/patches/fix-locale-normalize.diff'
--- debian/patches/fix-locale-normalize.diff    1970-01-01 00:00:00 +0000
+++ debian/patches/fix-locale-normalize.diff    2011-08-15 11:20:10 +0000
@@ -0,0 +1,18 @@
+Description: pass str() to locale.normalize
+ python2.7 locale.normalize it does not accept unicode strings
+Author: Julian Taylor <[email protected]>
+Bug: http://bugs.python.org/issue12752
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/playonlinux/+bug/825421
+Index: playonlinux/python/lib/lng.py
+===================================================================
+--- playonlinux.orig/python/lib/lng.py 2011-08-15 13:16:34.122945315 +0200
++++ playonlinux/python/lib/lng.py      2011-08-15 13:16:46.022945260 +0200
+@@ -15,7 +15,7 @@
+               mylocale.AddCatalogLookupPathPrefix(localedir)
+               mylocale.AddCatalog(domain)
+ 
+-              mytranslation = gettext.translation(domain, localedir, 
[mylocale.GetCanonicalName()], fallback = True)
++              mytranslation = gettext.translation(domain, localedir, 
[str(mylocale.GetCanonicalName())], fallback = True)
+               mytranslation.install()
+ 
+ 

=== modified file 'debian/patches/series'
--- debian/patches/series       2011-01-26 11:42:17 +0000
+++ debian/patches/series       2011-08-15 11:16:28 +0000
@@ -3,3 +3,4 @@
 x-terminal-emulator.diff
 license.diff
 bang.diff
+fix-locale-normalize.diff
 

--- End Message ---
--- Begin Message ---
the issue was fixed in python2.7.2-5
python2.7 (2.7.2-5) unstable; urgency=low

 * Update to 20110816, taken from the 2.7 branch.
   - Fix issue#12752. LP: #824734.
 * Don't run test_threading on the kfreebsd-i386 buildd.

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to