<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>208484</bug_id>
          
          <creation_ts>2008-02-01 20:01 0000</creation_ts>
          <short_desc>net-misc/wget-1.11 crash in utf8 on string: msgid &quot;  eta %s&quot;</short_desc>
          <delta_ts>2008-02-16 22:12:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <status_whiteboard>208484</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>maxim@office.modum.by</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>alexxy@gentoo.org</cc>
    
    <cc>mironov.ivan@gmail.com</cc>
    
    <cc>rikz@yandex.ru</cc>
    
    <cc>theli@ukr.net</cc>
    
    <cc>varavv@gala.net</cc>

      

      
          <long_desc isprivate="0">
            <who>maxim@office.modum.by</who>
            <bug_when>2008-02-01 20:01:36 0000</bug_when>
            <thetext>wget crashes here on string:

#. Translation note: &quot;ETA&quot; is English-centric, but this must
#. be short, ideally 3 chars.  Abbreviate if necessary.
#: src/progress.c:948
#, c-format
msgid &quot;  eta %s&quot;
msgid &quot;&quot;

I have here Russian translation. And with ru_RU.URF-8 wget crashes.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
$ wget http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.24.bz2
--2008-02-01 21:54:01--  http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.24.bz2
Распознаётся kernel.org... 204.152.191.5, 204.152.191.37
Устанавливается соединение с kernel.org|204.152.191.5|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: 9714780 (9,3M) [application/x-bzip2]
Сохраняется в каталог: `patch-2.6.24.bz2&apos;.

 0% [&gt;                                                                                                                    ] 88 018     29,5K/s             wget: progress.c:972: create_image: Проверочное утверждение `p - bp-&gt;buffer &lt;= bp-&gt;width&apos; не выполнено.
Аварийный останов</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-01 21:58:57 0000</bug_when>
            <thetext>runs fine for me

please consult the bug reporting page when filing bugs:
http://www.gentoo.org/doc/en/bugzilla-howto.xml

you&apos;ll need to provide `emerge --info`.  also, what size terminal are you running in ?  if you set LC_ALL to C, does wget work ?  how about en_US.UTF8 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>varavv@gala.net</who>
            <bug_when>2008-02-02 10:01:06 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; wget: progress.c:972: create_image: Проверочное
&gt; утверждение `p - bp-&gt;buffer &lt;= bp-&gt;width&apos; не выполнено.
&gt; Аварийный останов
&gt; 

Same for me here (ru_UA.UTF8 locale) 
emerge --info:
$ emerge --info
Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r5-xa4a-laptop x86_64)
=================================================================
System uname: 2.6.23-gentoo-r5-xa4a-laptop x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
Timestamp of tree: Sat, 02 Feb 2008 09:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.3-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 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.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-O3 -unicode -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O3 -unicode -pipe&quot;
DISTDIR=&quot;/mnt/portage/distfiles&quot;
FEATURES=&quot;metadata-transfer sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://gentoo.modulix.net/gentoo/&quot;
LANG=&quot;ru_UA.UTF-8&quot;
LINGUAS=&quot;ru&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X acl acpi alsa amd64 bash-completion battery berkdb bitmap-fonts bluetooth cli cracklib crypt cups dbus dri dvd encode ffmpeg fortran ftp gdbm gif gpm iconv icq ipv6 isdnlog jpeg kde laptop midi mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt readline reflection session smp sound spl sse sse2 ssl svg tcpd tk truetype truetype-fonts type1-fonts unicode usb vim-syntax wifi xinerama xorg zlib&quot; ALSA_CARDS=&quot;hda-intel&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;ru&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;i810&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

After moving wget from 1.11 back to 1.10.2 it&apos;s ok. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>reistnn@gmail.com</who>
            <bug_when>2008-02-02 15:11:14 0000</bug_when>
            <thetext>I have same error with ru_RU.UTF-8 locale. 
If  i set LC_ALL to C or en_US.UTF8 all work fine.
wget-1.10.2 work fine with any locale.

emerge --info
Portage 2.1.4.1 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.7-r1, 2.6.24-gentoo x86_64)
=================================================================
System uname: 2.6.24-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
Timestamp of tree: Fri, 01 Feb 2008 17:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.3-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
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.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=k8 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=k8 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;ru_RU.UTF-8&quot;
LINGUAS=&quot;ru&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow 7zip X acl acpi addbookmarks alias alsa amd64 archive arts autoreplace avahi bash-completion berkdb bitmap-fonts branding cairo cdr chm cli connectionstatus contactnotes cracklib crypt curl daemon dbus disk-partition djvu dri dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran fuse gd gdbm gif gpm gstreamer hal highlight history iconv id3tag irc isdnlog jack jingle jpeg jpeg2k kde kerberos ldap lm_sensors mad mdnsresponder-compat midi mikmod mmx mp3 mp4 mpeg mplayer mudflap musicbrainz ncurses nfs nls nptl nptlonly ntfs ogg opengl openmp oscar oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection reiserfs remote samba sdl session slang spell spl sqlite sse sse2 ssl statistics svg tcpd texteffect tiff truetype truetype-fonts type1-fonts unicode usb visualization vnc vorbis xattr xcomposite xine xml xorg xv xvid zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;ru&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv vesa vga nvidia&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maxim@office.modum.by</who>
            <bug_when>2008-02-04 08:44:44 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; you&apos;ll need to provide `emerge --info`.  also, what size terminal are you
&gt; running in ?  if you set LC_ALL to C, does wget work ?  how about en_US.UTF8 ?

For me it fails only with LC_ALL=ru_RU.UTF-8
On C or en_US.UTF-8 it works fine.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maxim@office.modum.by</who>
            <bug_when>2008-02-05 09:26:46 0000</bug_when>
            <thetext>Seems fixed in dev: http://hg.addictivecode.org/wget/1.11/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-09 22:37:15 0000</bug_when>
            <thetext>that doesnt really help.  since i&apos;m unable to reproduce, you need to test the changes and find out which one fixes things for you.  then i can add the fix from upstream to our ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maxim@office.modum.by</who>
            <bug_when>2008-02-11 08:22:42 0000</bug_when>
            <thetext>Created an attachment (id=143188)
Patch should fix this issue, i believe :)

http://hg.addictivecode.org/wget/1.11/rev/5fc91fe66179
Please check patch. It seems work for me here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>alexxy@gentoo.org</who>
            <bug_when>2008-02-12 16:57:00 0000</bug_when>
            <thetext>thanks a lot =)
Thisp patch works for me at least on x86 x86_64 and arm
with unicode locales</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mironov.ivan@gmail.com</who>
            <bug_when>2008-02-16 21:13:43 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; Created an attachment (id=143188) [edit]
&gt; Patch should fix this issue, i believe :)
&gt; 
&gt; http://hg.addictivecode.org/wget/1.11/rev/5fc91fe66179
&gt; Please check patch. It seems work for me here.
&gt; 

Works for me, thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-16 22:12:31 0000</bug_when>
            <thetext>thanks for testing, the patch has been added to wget-1.11-r1

http://sources.gentoo.org/net-misc/wget/files/wget-1.11-progress-bar-assert.patch?rev=1.1</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>143188</attachid>
            <date>2008-02-11 08:22 0000</date>
            <desc>Patch should fix this issue, i believe :)</desc>
            <filename>wget-progress-eta.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNyYy9wcm9ncmVzcy5jCTIwMDgtMDEtMjYgMTE6MjY6NTguMDAwMDAwMDAwICswMjAwCisr
KyBzcmMvcHJvZ3Jlc3MuYwkyMDA4LTAyLTExIDEwOjEyOjQyLjAwMDAwMDAwMCArMDIwMApAQCAt
OTY5LDggKzk2OSw2IEBACiAgICAgICBtb3ZlX3RvX2VuZCAocCk7CiAgICAgfQogCi0gIGFzc2Vy
dCAocCAtIGJwLT5idWZmZXIgPD0gYnAtPndpZHRoKTsKLQogICB3aGlsZSAocCA8IGJwLT5idWZm
ZXIgKyBicC0+d2lkdGgpCiAgICAgKnArKyA9ICcgJzsKICAgKnAgPSAnXDAnOwo=
</data>        

          </attachment>
    </bug>

</bugzilla>