Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223583 - dev-libs/libgweather-2.22.1.1 doesn't show ° (degree sign) near meteo info on panel
Summary: dev-libs/libgweather-2.22.1.1 doesn't show ° (degree sign) near meteo info on...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-25 16:57 UTC by Michele Schiavo
Modified: 2008-09-09 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
see previous comment (libgweather_utf8.patch,599 bytes, patch)
2008-09-08 01:13 UTC, Marcel Keller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Schiavo 2008-05-25 16:57:48 UTC
New ~gnome-2.22.1 have beside clock on the pannel, the meteo info.
this ° is not show, (there is a X in a square) i try to change my font, themes but this font missing still present.

Reproducible: Always
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-05-25 17:07:59 UTC
Do you loose the °, when using another font than the default font or is it missing no matter which font you're chosing?
Comment 2 Michele Schiavo 2008-05-25 19:01:28 UTC
I'm using default font. Sans 10


I try to change some fonts but the X still.
Comment 3 Michele Schiavo 2008-05-25 19:02:59 UTC
emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Sun, 25 May 2008 10:36:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=nocona -march=nocona -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=nocona -march=nocona -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg_ collision-protect_ distcc distlocks maketest metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://gentoo.mirror.web4u.cz/"
LANG="it_IT"
LINGUAS="it it_IT en en_GB es es_ES"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 64bit X X509 a52 aac aalib acpi aiglx aim alsa amd64 amr amrnb amrwb apache2 apm applet audiofile avi bacula-console bash-completion berkdb bidi bitmap-fonts bittorrent bluetooth bonobo branding browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot cli cracklib crypt css ctype cups curl dbus dc1394 deskbar divx dlloader dri dts dv dvb dvd dvdr dvdread dvi dynamic eds em emboss emovix encode esd ethereal evo evolution exif expat faillog fam fame fbsplash ffmpeg firefox flac flash fontconfig foomaticdb fortran fping freetds freetype ftp gaim gcc4 gd gdbm gdm gedit gencertdaily geoip gif gimp gimpprint glitz glut gmail gmedia gmp gno gnome gnutls gphoto2 gpm gsm gstreamer gtk gtk2 gtkhtml guile hal hash hddtemp howl iconv idea idn ieee1394 imagemagick imap imlib ipod ipv6 isdnlog ithreads java jpeg lame lcms libcaca libclamav libedit libnotify libwww live lm_sensors logrotate logwatch lzo lzw lzw-tiff mad maildir maildrop matroska mhash midi mikmod mime ming mjpeg mmx mmxext mng mono motif mozilla mozsvg mp2 mp3 mpeg mpm-prefork msn mudflap musepack musicbrainz mysql nautilus ncurses nemesei network networking new-login nfs ng nls nptl nptlonly nsplugin nvidia obex offensive ogg oggvorbis openal opengl openmp opensslcrypt optimisememory pam pcre pda pdf pdflib perl php png pop posix ppds pppd prediction python qmail qt3support qt4 quicktime quotas radio readline realmedia recode reflection regex remote rtc samba scanner sdl sensord server session simplexml skins slang smp sms sndfile sound sox spamassassin speex spell spl srt sse sse2 ssl ssse2 ssse3 stream subtitles svg symlink sysfs syslog tcltk tcpd teletext tetex theora threads threadsafe tiff tivo toolbar tracker truetype truetype-fonts type1-fonts udev unicode upnp usb v4l v4l2 vcd vhosts vim-syntax vlm vnc vorbis wavpack wifi wmf wmp wxgtk1 wxwindows x264 xanim xcomposite xml xml2 xmlreader xmlwriter xorg xpm xscreensaver xv xvid xvmc zip zlib" ALSA_CARDS="intel8x0 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="spca50x" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it it_IT en en_GB es es_ES" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Comment 4 Michele Schiavo 2008-05-25 19:03:18 UTC
from /etc/X/fs/config

....
catalogue = 	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi,
	/usr/share/fonts/afms,
	/usr/share/fonts/afms/adobe,
	/usr/share/fonts/arphicfonts,
	/usr/share/fonts/artwiz,
	/usr/share/fonts/artwiz-aleczapka-en,
	/usr/share/fonts/CID,
	/usr/share/fonts/corefonts,
	/usr/share/fonts/cronyx,
	/usr/share/fonts/cronyx/100dpi,
	/usr/share/fonts/cronyx/75dpi,
	/usr/share/fonts/cronyx/misc,
	/usr/share/fonts/cyrillic,
	/usr/share/fonts/default,
	/usr/share/fonts/default/ghostscript,
	/usr/share/fonts/dejavu,
	/usr/share/fonts/efont-unicode,
	/usr/share/fonts/encodings,
	/usr/share/fonts/encodings/large,
	/usr/share/fonts/free-bangla-font,
	/usr/share/fonts/freefont,
	/usr/share/fonts/freefonts,
	/usr/share/fonts/intlfonts,
	/usr/share/fonts/ja-ipafonts,
	/usr/share/fonts/jisx0213,
	/usr/share/fonts/jmk,
	/usr/share/fonts/kochi-substitute,
	/usr/share/fonts/latex-xft-fonts,
	/usr/share/fonts/lfpfonts-fix,
	/usr/share/fonts/lfpfonts-var,
	/usr/share/fonts/local,
	/usr/share/fonts/mathematica-fonts,
	/usr/share/fonts/mikachan-font,
	/usr/share/fonts/mikachan-font-otf,
	/usr/share/fonts/mikachan-font-ttc,
	/usr/share/fonts/mikachan-font-ttf,
	/usr/share/fonts/misc,
	/usr/share/fonts/nepali-fonts,
	/usr/share/fonts/sharefonts,
	/usr/share/fonts/terminus,
	/usr/share/fonts/ttf-bitstream-vera,
	/usr/share/fonts/ttf-gentium,
	/usr/share/fonts/Type1,
	/usr/share/fonts/ukr,
	/usr/share/fonts/unfonts,
	/usr/share/fonts/unfonts-extra,
	/usr/share/fonts/unifont,
	/usr/share/fonts/urw-fonts,
	/usr/share/fonts/util,
	/usr/share/fonts/vari,
	/usr/share/fonts/vc
.....
Comment 5 Michele Schiavo 2008-05-25 19:14:32 UTC
Something new...

Meteo applet have the same.

But when it receive data from the meteo server (and show temp), the ° will be replaced with X.


Step to replay this bug

Add meteo applet on panel.
For 1,2 seconds the ° is show good., when applet get data and show temperature, the ° will be X.

Data from meteo it's correct (21°C and rain)
Comment 6 Michele Schiavo 2008-05-25 19:17:27 UTC
Meteo Location don't care.
before get data is good.

I'm not sure, but applet after get data, change the font ?

C,F or K is indifferent
Comment 7 Michele Schiavo 2008-05-25 19:44:14 UTC
i put 2 screen shot here

http://uzz.dyndns.org/Meteo1.png

and 

http://uzz.dyndns.org/Meteo2.png


see the applet on the left.

Meteo1 was done just after add the applet on the panel
Meteo2 was done just after the applet get the data from the server.

C, f ok K don't care.
Meteo location don't care

Comment 8 Michele Schiavo 2008-05-25 19:57:41 UTC
SOLVED.

Login with another locale (American English) and after another login in Italian (make default again) and the problem solved.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-25 21:57:42 UTC
reassigning for reference
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-25 21:58:28 UTC
and closing.

Note to self, add something in the migration manual about that.
Comment 11 Marcel Keller 2008-09-08 01:11:25 UTC
I found out that the error occurs with a non-UTF8 locale because libgweather doesn't set the output of gettext() to UTF8. The attached patch works for me but I don't know whether this is the right way do it.
Comment 12 Marcel Keller 2008-09-08 01:13:05 UTC
Created attachment 164867 [details, diff]
see previous comment
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-09-08 07:06:15 UTC
in normal circumstances, there is no reason one program should output UTF-8 when the rest isn't. If the problem is because this particular applet only isn't setting UTF-8 then we should probably search the call to gtk_init, ... since it's supposed to be automatically set.

If the applet is borked just because you are using a non-UTF-8 locale, could you post this bug upstream ?
Comment 14 Marcel Keller 2008-09-09 22:25:45 UTC
The problem is that the weather applet takes the output of libgweather and puts it into the GUI, where UTF-8 is expected, right?

gtk_init() indirectly calls bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"), where GETTEXT_PACKAGE="gtk20", but libgweather should do the same call for GETTEXT_PACKAGE="libgweather".
Comment 15 Marcel Keller 2008-09-09 23:17:51 UTC
I just saw that there is already a solution upstream: http://bugzilla.gnome.org/show_bug.cgi?id=535865

Sorry for the trouble.