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 476177 - Crash on non-utf8 characters
Crash on non-utf8 characters
Status: RESOLVED DUPLICATE of bug 419093
Product: gimmie
Classification: Deprecated
Component: general
0.2.7
Other All
: High critical
: ---
Assigned To: Gimmie Maintainers
Gimmie Maintainers
: 458507 470809 480979 483368 501063 522696 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-09-12 11:30 UTC by BiFF
Modified: 2008-04-13 15:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description BiFF 2007-09-12 11:30:44 UTC
What were you doing when the application crashed?



Distribution: Ubuntu 7.10 (gutsy)
Gnome Release: 2.19.92 2007-09-04 (Ubuntu)
BugBuddy Version: 2.18.1

System: Linux 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Glossy
Icon Theme: Tango

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

Gimmie Version: 0.2.7

Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/gimmie/gimmie_topicwin.py", line 591 in _compare_item_name
    cmp((item1.get_name() or "").lower(), (item2.get_name() or "").lower())
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbc in position 0: unexpected code byte

Comment 1 BiFF 2007-09-12 12:36:58 UTC
Gimmie display unicode characts utf-8 code well ,
 but chars in other encoding may cause it core.

biff@biffasus:~$ env | grep -i lang
LANG=zh_CN.GB18030
GDM_LANG=zh_CN.GB18030
LANGUAGE=zh_CN.GB18030
biff@biffasus:~$ 
Comment 2 Benedikt Henrichs 2007-09-13 09:46:57 UTC
*** Bug 458507 has been marked as a duplicate of this bug. ***
Comment 3 Benedikt Henrichs 2007-09-13 09:48:54 UTC
*** Bug 470809 has been marked as a duplicate of this bug. ***
Comment 4 Benedikt Henrichs 2007-09-13 09:52:02 UTC
Thanks for the report, BiFF! Is this occuring when you are searching for something or how can you reproduce this bug?
Comment 5 BiFF 2007-09-18 01:33:59 UTC
I'v change my enviroment to zh_CN.UTF-8 in last 3 days   (it was zh_CN.GB18030 before )

and , Gimmie works well !

btw,if you want to reproduce the crash,.....

create a tomboy note, give the note a unicode title ( my notes all with chinese topic )

the note looks like this :
=================================================================
biff@biffasus:~/.tomboy$ env | grep -i lang
LANG=zh_CN.UTF-8
GDM_LANG=zh_CN.UTF-8

biff@biffasus:~/.tomboy$ file c8244ee2-e9d6-4b2e-a8c9-f8dd16115587.note
c8244ee2-e9d6-4b2e-a8c9-f8dd16115587.note: Unicode text, UTF-8

biff@biffasus:~/.tomboy$ cat c8244ee2-e9d6-4b2e-a8c9-f8dd16115587.note
<?xml version="1.0" encoding="utf-8"?>
<note version="0.2" xmlns:link="http://beatniksoftware.com/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size" xmlns="http://beatniksoftware.com/tomboy">
  <title>联系电话</title>
  <text xml:space="preserve"><note-content version="0.1">联系电话

6820 杨</note-content></text>
  <last-change-date>2006-09-21T09:13:43.1413500+08:00</last-change-date>
  <create-date>2006-09-21T09:09:25.0652980+08:00</create-date>
  <cursor-position>4</cursor-position>
  <width>548</width>
  <height>360</height>
  <x>0</x>
  <y>0</y>
  <open-on-startup>False</open-on-startup>
</note>biff@biffasus:~/.tomboy$ 
========================================================================
title with Chiese chars will display as filename at Library->notes in Gimmie
if lang=zh_CN.utf-8,all things goes well ,
but if the lang configured to zh_CN.GB18030,gimmie crash when show the title!
Comment 6 H. 2007-09-28 11:38:55 UTC
*** Bug 480979 has been marked as a duplicate of this bug. ***
Comment 7 H. 2007-10-06 12:22:36 UTC
*** Bug 483368 has been marked as a duplicate of this bug. ***
Comment 8 Cosimo Cecchi 2008-03-14 13:04:14 UTC
*** Bug 501063 has been marked as a duplicate of this bug. ***
Comment 9 Cosimo Cecchi 2008-03-23 17:30:36 UTC
*** Bug 522696 has been marked as a duplicate of this bug. ***
Comment 10 André Klapper 2008-04-13 15:06:57 UTC

*** This bug has been marked as a duplicate of 419093 ***