Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328959 - sys-apps/util-linux-2.18: cfdisk allows only one char in "Type" entry screen with wide ncurses
Summary: sys-apps/util-linux-2.18: cfdisk allows only one char in "Type" entry screen ...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL: http://thread.gmane.org/gmane.linux.u...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 13:41 UTC by James L. Hammons
Modified: 2010-07-20 16:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James L. Hammons 2010-07-19 13:41:07 UTC
Steps to reproduce:

1) Launch cfdisk for any visible disk in the system (e.g., cfdisk /dev/sda)

2) Select any partition, then select "Type" from the menu at the bottom

3) Attempt to type more than one character at the "Enter filesystem type" prompt

Note that cfdisk from util-linux 2.17.2 does not exhibit this behavior. I tested this on three separate systems (one desktop, one laptop, and one server) and they all exhibit the same problem. The following is the "emerge --info" from one of those systems (the desktop); if you'd like, I can include "emerge --info" from the other two as well.

# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-AMD_Athlon-TM-_XP_2400+-with-gentoo-2.0.1
Timestamp of tree: Wed, 14 Jul 2010 17:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.2-r3, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://192.168.0.9/gentoo-portage"
USE="3dnow 3dnowext 3ds 7zip X a52 aac acl alsa ao aspell autotrace berkdb bzip2 cairo cdda cli consolekit corefonts cpudetection cracklib crypt cups cxx dbus devil dirac djvu dri dv dvd embedded emf encode ffmpeg fftw flac fluidsynth fontconfig fontforge fortran gdbm gif gpm grp gs hal handbook hog iconv inkjar java javascript joystick jpeg jpeg2k ladspa lame lash lcms lzma lzo mad matroska midi mikmod mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap musepack music mvl mysql ncurses nls nptl nptlonly nuv ofx ogg openal openexr opengl openmp pam pch pcre pdf perl plotutils png policykit postscript pppd qpak qt3support qt4 quicktime readline reflection sdl semantic-desktop session sndfile sox speex spell spl sql sse sse2 ssl svg sysfs taglib tcpd tga theora tiff truetype truetype-debugger unicode vcd vidix vorbis wad wav wavpack webkit wma wma-fixed wmf x264 x86 xcomposite xine xml xorg xpm xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2010-07-19 19:41:05 UTC
looks like a bug with the wide char handling.  it asks for 2 bytes, but via wide chars, so you can only input 1 char.
Comment 2 SpanKY gentoo-dev 2010-07-19 21:50:46 UTC
applied the upstream patch for the issue to 2.18-r1.  seems to work for me.
Comment 3 James L. Hammons 2010-07-20 16:59:46 UTC
Confirmed the patch fixes it, at least on the server, so closing. Thanks!