Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208976 - sys-apps/util-linux-2.13+: cfdisk broken russian interface
Summary: sys-apps/util-linux-2.13+: cfdisk broken russian interface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-05 09:40 UTC by Azamat H. Hackimov
Modified: 2008-03-29 21:31 UTC (History)
0 users

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


Attachments
slang-support.patch (slang-support.patch,786 bytes, patch)
2008-02-10 23:51 UTC, Azamat H. Hackimov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Azamat H. Hackimov 2008-02-05 09:40:02 UTC
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'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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu                                              tdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/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"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/samba/all_gentoo_distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms stri                                              ct unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--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-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://86.57.151.3/ftp/pub/gentoo/gentoo-portage/"
USE="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" ALSA_CARDS="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" 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" A                                              PACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL=                                              "linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb nc                                              urses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="vesa nv"
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="nls" emerge sys-apps/util-linux
2. LANG="ru_RU.UTF-8" cfdisk
3. Get broken interface
Comment 1 SpanKY gentoo-dev 2008-02-09 22:22:22 UTC
did util-linux-2.12* work ?  what about 2.13.1 ?
Comment 2 Azamat H. Hackimov 2008-02-10 14:07:21 UTC
(In reply to comment #1)
> did util-linux-2.12* work ?  what about 2.13.1 ?

2.12* not have russian interface.
2.13.1 give same problem
Comment 3 SpanKY gentoo-dev 2008-02-10 21:37:57 UTC
ok, so it isnt a regression

try without a UTF8 locale ... just LANG=ru_RU
Comment 4 Azamat H. Hackimov 2008-02-10 22:12:42 UTC
(In reply to comment #3)
> ok, so it isnt a regression
> 
> try without a UTF8 locale ... just LANG=ru_RU
> 
This work, but I use UTF-8 console, and I get screen with squares instead letters.

I think it's issue of ncurses. Same problem appears with mc long time ago.
Comment 5 SpanKY gentoo-dev 2008-02-10 22:27:08 UTC
util-linux atm forces linking against the narrow versions of ncurses ... i'm just trying to make sure that this is indeed the source of your troubles
Comment 6 Azamat H. Hackimov 2008-02-10 23:50:27 UTC
OK, I solved this problem. cfdisk may be compiled with slang support, this might be workaround. Patch iincluded.

Comment 7 Azamat H. Hackimov 2008-02-10 23:51:33 UTC
Created attachment 143172 [details, diff]
slang-support.patch

Add slang support for cfdisk
Comment 8 SpanKY gentoo-dev 2008-03-29 21:31:46 UTC
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).