GNOME Bugzilla – Bug 169386
gweather applet crash when LANG is set Greek
Last modified: 2005-03-21 16:44:59 UTC
Version details: 2.9.91.1 via garnome Distribution/Version: garnome i tried to add weather applet on top panel but it crashes everytime (Language=Greek). Another test with English Language was succesful output: Backtrace was generated from '/home/gnome210/garnome/libexec/gweather-applet-2' Using host libthread_db library "/lib/tls/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1208748352 (LWP 7349)] 0x006a07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
+ Trace 56500
retitling as adding using German locale works.
Trace line #1 shows that a buffer overflow takes place in function weather_location_new(), which appears to be in gnome-applets/gweather/weather.c (line: 1545). The caller appears to be at line 212. untrans_name has the value 0xce95cea4 which is an invalid value. trans_name points to a similar value, 0xce9dcea5. Both these values look remarkably like Unicode, UTF-8 encoding. Running $ perl -e 'printf "%c%c%c%c", 0xce, 0x95, 0xce, 0xa4' ΕΤ (this looks exactly like "ET" but it's in the Greek script) $ perl -e 'printf "%c%c%c%c", 0xce, 0x95, 0xce, 0xa5' ΕΥ (this looks exactly like "EY" but it's in the Greek script) Could you please check the location of the translated names of the airports/cities (is it Locations.xml?) and specifically see any strange names starting with those letters?
the error was in translated string DEFAULT_COORDINATES so i make it blank in order to work. I have to note that comments for translator were confusing and unclear where is the locations file? (Locations.xml?) for example. Never mind, i hope not to suffer many crashes other languages that were unaware of this issue. #. TRANSLATOR: Change this to the default location code (2nd parameter) in the #. gweather/Locations file #. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK NYZ076 nyc #. so this should be translated as "KJFK" #: gweather/gweather.schemas.in.h:1 gweather/weather.c:168 #: gweather/weather.c:173 msgid "DEFAULT_CODE" msgstr "LGAV" #: gweather/gweather.schemas.in.h:2 msgid "DEFAULT_COORDINATES" msgstr "" #. TRANSLATOR: Change this to the default location name (1st parameter) in the #. gweather/Locations file #. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK NYZ076 nyc #. so this should be translated as "New York-JFK Arpt" #: gweather/gweather.schemas.in.h:3 gweather/weather.c:147 #: gweather/weather.c:152 gweather/weather.c:153 msgid "DEFAULT_LOCATION" msgstr "Athinai" #. Translators: Change this to the default location radar (4th parameter) in the #. gweather/Locations file #. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK NYZ076 nyc #. so this should be translated as "nyc" #: gweather/gweather.schemas.in.h:4 gweather/weather.c:200 #: gweather/weather.c:205 msgid "DEFAULT_RADAR" msgstr "DEFAULT_RADAR" #. TRANSLATOR: Change this to the default location zone (3rd parameter) in the #. gweather/Locations file #. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK NYZ076 nyc #. so this should be translated as "NYZ076" #: gweather/gweather.schemas.in.h:5 gweather/weather.c:184 #: gweather/weather.c:189 msgid "DEFAULT_ZONE" msgstr "DEFAULT_ZONE"
Bug fixed and I am closing it. I am starting a new thread on gnome-i18n about what the translators should put for the DEFAULT_* strings in gnome-applets/gweather/