<?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>208976</bug_id>
          
          <creation_ts>2008-02-05 09:40 0000</creation_ts>
          <short_desc>sys-apps/util-linux-2.13+: cfdisk broken russian interface</short_desc>
          <delta_ts>2008-03-29 21:31:46 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>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>azamat.hackimov@gmail.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>azamat.hackimov@gmail.com</who>
            <bug_when>2008-02-05 09:40:02 0000</bug_when>
            <thetext>When I install sys-apps/util-linux-2.13-r2 with USE-flag nls Iget broken interface:
                          cfdisk (util-linux-ng 2.13)

                ▒~Tи▒~Aков▒~Kй накопи▒~Bел▒~L: /dev/hde
                Разме▒~@: 250059350016 бай▒~B, 250.0 ▒~S▒~Q
▒~Sоловок: 255   Сек▒~Bо▒~@ов на до▒~@ожк▒~C: 63   Цилин
д▒~@▒
   ▒~Xм▒~O    Флаги Тип ▒~@▒Тип ФС                     [▒~\е▒~Bка  Разме
▒------------------------------------------------------------------------------
    hde1        ▒~Wаг▒~@▒~▒~^▒~AноLinux ext3                      250056,74

Normally it must draw:

                          cfdisk (util-linux-ng 2.13)

                         Дисковый накопитель: /dev/hde
                      Размер: 250059350016 байт, 250.0 ГБ
           Головок: 255   Секторов на дорожку: 63   Цилиндров: 30401

    Имя         Флаги      Тип разделаТип ФС           [Метка]        Размер (МБ
)------------------------------------------------------------------------------
    hde1        Загрузочный Основной  Linux ext3                      250056,74


This error occure because I use UTF8-locale. Maybe this is ncurses issue, I don&apos;t know. I have sys-libs/ncurses-5.6-r2


System info:

emerge --info
Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-ge                                              ntoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Pentium III (Coppermine)
Timestamp of tree: Mon, 28 Jan 2008 01:47:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable                                              d]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
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.23-r3
ACCEPT_KEYWORDS=&quot;x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu                                              tdown /usr/share/config /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /et                                              c/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /et                                              c/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O2 -march=pentium3 -pipe&quot;
DISTDIR=&quot;/samba/all_gentoo_distfiles&quot;
FEATURES=&quot;ccache distlocks metadata-transfer parallel-fetch sandbox sfperms stri                                              ct unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org/&quot;
LANG=&quot;ru_RU.UTF-8&quot;
LC_ALL=&quot;&quot;
LINGUAS=&quot;ru en&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress                                               --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di                                              stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://86.57.151.3/ftp/pub/gentoo/gentoo-portage/&quot;
USE=&quot;X acl acpi ads alsa authdaemond berkdb bitmap-fonts bzip2 cli cracklib cryp                                              t ctype dmi dri gdbm gpm hal iconv isdnlog maildir maildrop mailwrapper midi mmx                                               mod_irc mod_muc mod_pubsub mudflap mysql nagios-ping nagios-ssh ncurses nls npt                                              l nptlonly openmp pam pcre perl plugins ppds pppd python qt3 readline reflection                                               samba session spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode                                               x86 xorg zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmi                                              pci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 inte                                              l8x0m 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; A                                              PACHE2_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_owne                                              r authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expi                                              res ext_filter file_cache filter headers include info log_config logio mem_cache                                               mime mime_magic negotiation rewrite setenvif speling status unique_id userdir u                                              sertrack vhost_alias&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=                                              &quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb nc                                              urses text&quot; LINGUAS=&quot;ru en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vesa nv&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_C                                              OMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always

Steps to Reproduce:
1. USE=&quot;nls&quot; emerge sys-apps/util-linux
2. LANG=&quot;ru_RU.UTF-8&quot; cfdisk
3. Get broken interface</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-09 22:22:22 0000</bug_when>
            <thetext>did util-linux-2.12* work ?  what about 2.13.1 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azamat.hackimov@gmail.com</who>
            <bug_when>2008-02-10 14:07:21 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; did util-linux-2.12* work ?  what about 2.13.1 ?

2.12* not have russian interface.
2.13.1 give same problem
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-10 21:37:57 0000</bug_when>
            <thetext>ok, so it isnt a regression

try without a UTF8 locale ... just LANG=ru_RU</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azamat.hackimov@gmail.com</who>
            <bug_when>2008-02-10 22:12:42 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; ok, so it isnt a regression
&gt; 
&gt; try without a UTF8 locale ... just LANG=ru_RU
&gt; 
This work, but I use UTF-8 console, and I get screen with squares instead letters.

I think it&apos;s issue of ncurses. Same problem appears with mc long time ago.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-10 22:27:08 0000</bug_when>
            <thetext>util-linux atm forces linking against the narrow versions of ncurses ... i&apos;m just trying to make sure that this is indeed the source of your troubles</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azamat.hackimov@gmail.com</who>
            <bug_when>2008-02-10 23:50:27 0000</bug_when>
            <thetext>OK, I solved this problem. cfdisk may be compiled with slang support, this might be workaround. Patch iincluded.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azamat.hackimov@gmail.com</who>
            <bug_when>2008-02-10 23:51:33 0000</bug_when>
            <thetext>Created an attachment (id=143172)
slang-support.patch

Add slang support for cfdisk</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-03-29 21:31:46 0000</bug_when>
            <thetext>upstream now handles ncurses/ncursesw properly.  ive added that as well as slang support to the ebuild (as slang is a terrible library to depend on).</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>143172</attachid>
            <date>2008-02-10 23:51 0000</date>
            <desc>slang-support.patch</desc>
            <filename>slang-support.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHV0aWwtbGludXgtMi4xMy1yMi5lYnVpbGQJMjAwOC0wMi0xMSAwNDo0NjozNy4wMDAwMDAw
MDAgKzA1MDAKKysrIHV0aWwtbGludXgtMi4xMy1yOTkuZWJ1aWxkCTIwMDgtMDItMTEgMDQ6Mjk6
MjIuMDAwMDAwMDAwICswNTAwCkBAIC0yMiw3ICsyMiw3IEBACiBMSUNFTlNFPSJHUEwtMiIKIFNM
T1Q9IjAiCiBLRVlXT1JEUz0iYWxwaGEgYW1kNjQgYXJtIGhwcGEgaWE2NCBtNj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