Bug#637878: playonlinux does not start with python2.7
Julian Taylor
jtaylor.debian at googlemail.com
Mon Aug 15 11:30:00 UTC 2011
Package: playonlinux
Version: 3.8.8-1
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
User: debian-python at lists.debian.org
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)
-------------- next part --------------
=== 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 <jtaylor.debian at googlemail.com>
+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
More information about the Pkg-games-devel
mailing list