Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96586 - xchat-xsys bogus output when '/DISKINFO ALL' is used
Summary: xchat-xsys bogus output when '/DISKINFO ALL' is used
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 01:48 UTC by Martin Wienold
Modified: 2005-06-20 11:48 UTC (History)
0 users

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


Attachments
xchat-xsys.png (xchat-xsys.png,72.81 KB, image/png)
2005-06-20 01:49 UTC, Martin Wienold
Details
2.0.6-localisation.patch (2.0.6-localisation.patch,357 bytes, patch)
2005-06-20 11:38 UTC, Tony Vroon (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wienold 2005-06-20 01:48:26 UTC
xchat-xsys produces bogus output when '/DISKINFO all' is used.
attached file is a png image showing xchat-xsys-2.0.6 with xchat-2.4.3

Reproducible: Always
Steps to Reproduce:
1.emerge xchat xchat-xsys
2.run xchat
3.type '/DISKINFO all'

Actual Results:  
See attached file for example (png image)

Expected Results:  
should print smth. like 

::[disk]:[/: 1.00GB/8.00GB | /home ... 

I tested this on 2 systems. Both with same results.
The attached picture shows the first system.

info of first system:
----------------------------------
$ emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 Unknow CPU Type
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 18 2005, 09:41:04)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="audoaddcvs autoaddcvs autoconfig candy ccache distlocks fixpackages
sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/
ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X a52 aac alsa avi berkdb bitmap-fonts bmp cdr
chroot crypt cups curl divx4linux dvd dvdr eds emboss encode erandom fam flac
font-server foomatic foomaticdb freetype gcj gdbm gif gimpprint glitz glut gnome
gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imlib ipv6 java javascript
joystick jpeg junit lcms libg++ libwww mad matroska mikmod mmx mmx2 mmxext motif
mozsvg mp3 mpeg ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl
pam pdflib pic png ppds python quicktime readline real rtc samba sox spell sse
ssl tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb
userlocales vorbis win32codecs xface xine xml2 xv xvid xvmc zlib linguas_de
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

$ df 
Dateisystem          Gr
Comment 1 Martin Wienold 2005-06-20 01:48:26 UTC
xchat-xsys produces bogus output when '/DISKINFO all' is used.
attached file is a png image showing xchat-xsys-2.0.6 with xchat-2.4.3

Reproducible: Always
Steps to Reproduce:
1.emerge xchat xchat-xsys
2.run xchat
3.type '/DISKINFO all'

Actual Results:  
See attached file for example (png image)

Expected Results:  
should print smth. like 

::[disk]:[/: 1.00GB/8.00GB | /home ... 

I tested this on 2 systems. Both with same results.
The attached picture shows the first system.

info of first system:
----------------------------------
$ emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 Unknow CPU Type
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 18 2005, 09:41:04)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="audoaddcvs autoaddcvs autoconfig candy ccache distlocks fixpackages
sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/
ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X a52 aac alsa avi berkdb bitmap-fonts bmp cdr
chroot crypt cups curl divx4linux dvd dvdr eds emboss encode erandom fam flac
font-server foomatic foomaticdb freetype gcj gdbm gif gimpprint glitz glut gnome
gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imlib ipv6 java javascript
joystick jpeg junit lcms libg++ libwww mad matroska mikmod mmx mmx2 mmxext motif
mozsvg mp3 mpeg ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl
pam pdflib pic png ppds python quicktime readline real rtc samba sox spell sse
ssl tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb
userlocales vorbis win32codecs xface xine xml2 xv xvid xvmc zlib linguas_de
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

$ df 
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/hda3             7,7G  6,6G  1,1G  87% /
udev                  379M  608K  378M   1% /dev
/dev/hda4              67G   66G  1,2G  99% /home
/dev/hdb1             112G  106G  6,6G  95% /mnt/daten
none                  379M     0  379M   0% /dev/shm

$ grep -v ^$ /etc/fstab | grep -v ^#
/dev/hda1		/boot		ext3		noauto,noatime		1 1
/dev/hda3		/		reiserfs	notail,noatime,rw,user_xattr	0 1
/dev/hda4		/home		reiserfs	notail,noatime,rw,user_xattr	0 2
/dev/hdb1		/mnt/daten	reiserfs	notail,noatime,rw,user_xattr	0 3
/dev/hda2		none		swap		sw			0 0
none			/proc		proc		defaults		0 0
none			/dev/shm	tmpfs		defaults		0 0
none 			/proc/bus/usb	usbfs		defaults		0 0
/dev/hdd                /media/cdrecorder       auto   
ro,exec,user,users,noauto 0 0
/dev/hdc                /media/cdrom            auto   
ro,exec,user,users,noauto 0 0
/dev/fd0                /media/floppy       	vfat   
rw,exec,user,users,noauto,sync 0 0
_____________________________

info of 2nd system

$ emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-suspend2-r10 i686)
=================================================================
System uname: 2.6.11-suspend2-r10 i686 Intel(R) Pentium(R) M processor 1300MHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 11 2005, 10:15:51)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox
sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/
ftp://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/
http://trumpetti.atm.tut.fi/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa avi berkdb bitmap-fonts bmp chroot crypt divx4linux dvd
emboss encode erandom font-server freetype gcj gdbm gif gtk gtk2 imlib java
javascript joystik jpeg junit libg++ libwww mad matroska mikmod mmx motif mp3
mpeg ncurses nls nptl nptlonly offensive ogg oggvorbis opengl pam pdflib pic png
python quicktime readline samba spell sse sse2 ssl tcpd tetex theora tiff
truetype truetype-fonts type1-fonts unicode userlocales vorbis win32codecs xml2
xv xvid zlib video_cards_i915 linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

$ df
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/hda3             7,6G  2,2G  5,4G  29% /
udev                  236M  604K  236M   1% /dev
none                  7,6G  2,2G  5,4G  29% /etc/splash/livecd-2005.0
/dev/hda4              30G   24G  5,6G  81% /home
none                  236M     0  236M   0% /dev/shm

$ grep -v ^$ /etc/fstab | grep -v ^#
/dev/hda1		/boot		ext2		noauto,noatime		1 1
/dev/hda3		/		reiserfs	noatime,rw		1 1
/dev/hda2		none		swap		sw			0 0
/dev/hda4		/home		reiserfs	noatime,rw		1 1
none			/proc		proc		defaults		0 0
none			/dev/shm	tmpfs		defaults		0 0
none			/proc/bus/usb	usbfs		defaults		0 0
/dev/uba1		/media/usbkey	vfat		noauto,users,rw,umask=640,dmask=777		1 1
/dev/hdc                /media/cdrecorder       auto    user,exec,noauto,managed 0 0
Comment 2 Martin Wienold 2005-06-20 01:49:47 UTC
Created attachment 61564 [details]
xchat-xsys.png

screenshot showing output of
'/EDISKINFO all' in xchat-2.4.3 mit xchat-xsys-2.0.6
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2005-06-20 11:28:25 UTC
It's your localisation that ruins it, most probably. Could you try with LC_ALL=C
temporarily? If that works I'll have to patch this line:

pipe = popen("df -k -l -P --exclude-type=tmpfs", "r");

to instead read something along the lines of:

pipe = popen("LC_ALL="C" df -k -l -P --exclude-type=tmpfs", "r");

Comment 4 Tony Vroon (RETIRED) gentoo-dev 2005-06-20 11:38:15 UTC
Created attachment 61590 [details, diff]
2.0.6-localisation.patch

This patch does not break things for me, and should fix the output for you.
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2005-06-20 11:48:46 UTC
In portage as 2.0.6-r1.