After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 409740 - UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 16:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 16:
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
unspecified
Other All
: High critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 406772 418860 419920 421181 421603 422174 422377 423893 423908 423914 424234 426357 426470 426607 426860 426882 427030 428420 450390 450823 453088 459235 468482 474341 481287 489879 495612 495880 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-02-19 20:18 UTC by Andreas Røsdal
Modified: 2007-11-12 12:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Andreas Røsdal 2007-02-19 20:18:05 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):
  • File "/usr/local/lib/python2.5/site-packages/gnome_sudoku/gnome_sudoku.py", line 708 in update_statusbar_cb
    if len(self.current_puzzle_name)>18: self.current_puzzle_name = self.current_puzzle_name[:17]+u'\u2026'
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 16: unexpected end of data

Comment 1 Andreas Røsdal 2007-02-25 16:23:45 UTC
*** Bug 406772 has been marked as a duplicate of this bug. ***
Comment 2 Damien Durand 2007-03-16 20:13:33 UTC
*** Bug 418860 has been marked as a duplicate of this bug. ***
Comment 3 Robert Ancell 2007-03-18 23:11:25 UTC
*** Bug 419920 has been marked as a duplicate of this bug. ***
Comment 4 Robert Ancell 2007-03-22 22:45:54 UTC
*** Bug 421603 has been marked as a duplicate of this bug. ***
Comment 5 Robert Ancell 2007-03-22 23:05:09 UTC
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.
Comment 6 Robert Ancell 2007-03-23 05:29:29 UTC
*** Bug 421181 has been marked as a duplicate of this bug. ***
Comment 7 Robert Ancell 2007-03-24 01:45:27 UTC
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.
Comment 8 Nickolay V. Shmyrev 2007-03-24 07:11:58 UTC
Seems to be fixed
Comment 9 Robert Ancell 2007-03-25 03:28:33 UTC
*** Bug 422174 has been marked as a duplicate of this bug. ***
Comment 10 Robert Ancell 2007-03-25 03:29:19 UTC
*** Bug 422377 has been marked as a duplicate of this bug. ***
Comment 11 Sven Arvidsson 2007-03-28 22:07:07 UTC
*** Bug 423893 has been marked as a duplicate of this bug. ***
Comment 12 Sven Arvidsson 2007-03-28 22:07:41 UTC
*** Bug 423908 has been marked as a duplicate of this bug. ***
Comment 13 Sven Arvidsson 2007-03-28 22:08:31 UTC
*** Bug 423914 has been marked as a duplicate of this bug. ***
Comment 14 Sven Arvidsson 2007-03-29 20:50:27 UTC
*** Bug 424234 has been marked as a duplicate of this bug. ***
Comment 15 Robert Ancell 2007-04-06 10:15:44 UTC
*** Bug 426357 has been marked as a duplicate of this bug. ***
Comment 16 Robert Ancell 2007-04-06 10:17:00 UTC
*** Bug 426607 has been marked as a duplicate of this bug. ***
Comment 17 Robert Ancell 2007-04-06 10:17:13 UTC
*** Bug 426860 has been marked as a duplicate of this bug. ***
Comment 18 Robert Ancell 2007-04-06 10:17:28 UTC
*** Bug 426470 has been marked as a duplicate of this bug. ***
Comment 19 Robert Ancell 2007-04-06 13:54:45 UTC
*** Bug 426882 has been marked as a duplicate of this bug. ***
Comment 20 Pedro Villavicencio 2007-04-07 15:42:08 UTC
*** Bug 427030 has been marked as a duplicate of this bug. ***
Comment 21 Robert Ancell 2007-04-15 02:41:38 UTC
*** Bug 428420 has been marked as a duplicate of this bug. ***
Comment 22 Thomas Andersen 2007-06-23 16:18:36 UTC
*** Bug 450390 has been marked as a duplicate of this bug. ***
Comment 23 Thomas Andersen 2007-06-25 10:11:49 UTC
*** Bug 450823 has been marked as a duplicate of this bug. ***
Comment 24 Thomas Andersen 2007-07-02 16:09:42 UTC
*** Bug 453088 has been marked as a duplicate of this bug. ***
Comment 25 Pascal Terjan 2007-07-26 12:59:01 UTC
*** Bug 459235 has been marked as a duplicate of this bug. ***
Comment 26 Thomas Andersen 2007-08-20 12:25:28 UTC
*** Bug 468482 has been marked as a duplicate of this bug. ***
Comment 27 Thomas Andersen 2007-09-09 20:34:37 UTC
*** Bug 474341 has been marked as a duplicate of this bug. ***
Comment 28 Thomas Andersen 2007-09-30 23:05:59 UTC
*** Bug 481287 has been marked as a duplicate of this bug. ***
Comment 29 Thomas Andersen 2007-10-28 12:20:17 UTC
*** Bug 489879 has been marked as a duplicate of this bug. ***
Comment 30 Christoph Wolk 2007-11-12 11:53:57 UTC
*** Bug 495880 has been marked as a duplicate of this bug. ***
Comment 31 Christoph Wolk 2007-11-12 12:00:46 UTC
*** Bug 495612 has been marked as a duplicate of this bug. ***