Package: anki Version: 1.2.9-2 Severity: minor Tags: patch upstream Dear Maintainer,
running anki from the command line yields $ anki /usr/share/anki/anki/deck.py:3597: SAWarning: Unicode column received non-unicode default value. Column('name', UnicodeText, nullable=False, default=""), I've attached the trivial patch to fix this. Kind regards, --Toni++ -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.3.0-trunk-686-pae (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages anki depends on: ii python 2.7.2-10 ii python-beautifulsoup 3.2.0-2 ii python-qt4 4.9.1-3 ii python-simplejson 2.5.2-1 ii python-sqlalchemy 0.7.7-1 Versions of packages anki recommends: ii kakasi 2.3.5~pre1+cvs20071101-1 ii python-matplotlib 1.1.1~rc1-2 Versions of packages anki suggests: ii dvipng 1.14-1+b1 -- no debconf information
commit d2c903ab87b8a2f6fec08b3e51f67fda8c403fbc Author: Toni Mueller <d...@tonimueller.org> Date: Thu May 31 23:25:31 2012 +0200 fix unicode problem in database code diff --git a/debian/patches/fix-unicode-problem b/debian/patches/fix-unicode-problem new file mode 100644 index 0000000..748dfe1 --- /dev/null +++ b/debian/patches/fix-unicode-problem @@ -0,0 +1,11 @@ +--- a/libanki/anki/deck.py ++++ b/libanki/anki/deck.py +@@ -3594,7 +3594,7 @@ + sourcesTable = Table( + 'sources', metadata, + Column('id', Integer, nullable=False, primary_key=True), +- Column('name', UnicodeText, nullable=False, default=""), ++ Column('name', UnicodeText, nullable=False, default=u""), + Column('created', Float, nullable=False, default=time.time), + Column('lastSync', Float, nullable=False, default=0), + # -1 = never check, 0 = always check, 1+ = number of seconds passed. diff --git a/debian/patches/series b/debian/patches/series index bcc99a2..56a5473 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +fix-unicode-problem no-version-nag paths default-locale