GNOME Bugzilla – Bug 409740
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 16:
Last modified: 2007-11-12 12:00:46 UTC
What were you doing when the application crashed? running gnome-sudoku with export LANG=ru_RU Distribution: openSUSE 10.2 (i586) Gnome Release: 2.16.1 2006-11-28 (SUSE) BugBuddy Version: 2.17.3 System: Linux 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 X Vendor: The X.Org Foundation X Vendor Release: 70199902 Selinux: No Accessibility: Disabled GTK+ Theme: Gilouche Icon Theme: Industrial Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0 CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0 ----------- .xsession-errors (344 sec old) --------------------- Initializing nautilus-share extension Initializing nautilus-open-terminal extension Initializing gnome-mount extension (gnome-panel:4199): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -25 and height 24 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 error: The metadata does not have a thumbnail property error: The metadata does not have a thumbnail property -------------------------------------------------- Traceback (most recent call last):
+ Trace 112084
if len(self.current_puzzle_name)>18: self.current_puzzle_name = self.current_puzzle_name[:17]+u'\u2026'
*** Bug 406772 has been marked as a duplicate of this bug. ***
*** Bug 418860 has been marked as a duplicate of this bug. ***
*** Bug 419920 has been marked as a duplicate of this bug. ***
*** Bug 421603 has been marked as a duplicate of this bug. ***
I think I know what this is... I suspect current_puzzle_name is a standard string and when the slice is done it splits the middle of a multi-byte character for Russian users, i.e. [:17] does not get the first 17 characters but the first 17 octets. The solution is to make the string unicode. Editing sudoku_maker.py:get_puzzle_name() and changing the return to return unicode(...) should fix it. There are potentially many more errors like this because gettext.gettext returns a string not a unicode string.
*** Bug 421181 has been marked as a duplicate of this bug. ***
I've fixed this in 2.18 and 2.20 but can't test because my language support is not working right now. Can someone please test and confirm this is fixed.
Seems to be fixed
*** Bug 422174 has been marked as a duplicate of this bug. ***
*** Bug 422377 has been marked as a duplicate of this bug. ***
*** Bug 423893 has been marked as a duplicate of this bug. ***
*** Bug 423908 has been marked as a duplicate of this bug. ***
*** Bug 423914 has been marked as a duplicate of this bug. ***
*** Bug 424234 has been marked as a duplicate of this bug. ***
*** Bug 426357 has been marked as a duplicate of this bug. ***
*** Bug 426607 has been marked as a duplicate of this bug. ***
*** Bug 426860 has been marked as a duplicate of this bug. ***
*** Bug 426470 has been marked as a duplicate of this bug. ***
*** Bug 426882 has been marked as a duplicate of this bug. ***
*** Bug 427030 has been marked as a duplicate of this bug. ***
*** Bug 428420 has been marked as a duplicate of this bug. ***
*** Bug 450390 has been marked as a duplicate of this bug. ***
*** Bug 450823 has been marked as a duplicate of this bug. ***
*** Bug 453088 has been marked as a duplicate of this bug. ***
*** Bug 459235 has been marked as a duplicate of this bug. ***
*** Bug 468482 has been marked as a duplicate of this bug. ***
*** Bug 474341 has been marked as a duplicate of this bug. ***
*** Bug 481287 has been marked as a duplicate of this bug. ***
*** Bug 489879 has been marked as a duplicate of this bug. ***
*** Bug 495880 has been marked as a duplicate of this bug. ***
*** Bug 495612 has been marked as a duplicate of this bug. ***