Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
The attached patches (for ncurses-5.3-r1.ebuild and for ncurses-5.3 source) enable wide character support in ncurses (if the USE variable "nls" is set) without renaming the library to ncursesw. So the other ebuilds (like mutt) do not have to be changed for UTF-8 support. Reproducible: Always Steps to Reproduce: 1. cd /usr/portage/sys-libs/ncurses 2. cp ncurses-5.3-r2.ebuild ncurses-5.3-r2.ebuild 3. patch < ~/ncurses-5.3-r2.ebuild.patch 4. cp ~/ncurses-5.3.utf8normal.patch files 5. ACCEPT_KEYWORDS=~x86 emerge ncurses Actual Results: mutt displayed German umlauts correctly even with LC_CTYPE=en_US.UTF-8. Expected Results: Exactly that. :) Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.19-cube-8 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/vice/etc:/usr/share/config:/usr/kde/3.1/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/afs/modload /etc/afs/C /etc/afs/afsws /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 libg++ gtkhtml gdbm berkdb libwww gtk cdr -3dfx 3dnow -aalib acl afs -alsa apm -arts avi -bonobo crypt -cups dga -directfb doc -dvd encode -esd -evo -fbcon -ggi gif -gnome -gnome-libs -gphoto2 -gpm guile -icc -icc-pgo imap imlib ipv6 -java jpeg kde kerberos lcms ldap -matrox maildir mbox mikmod mmx monitor -motif mozilla mpeg -mule mysql nas ncurses nls -odbc oggvorbis opengl oss pam -pcmcia -pda pdflib -perl png -pnp postgres python qt qtmt quicktime readline -ruby samba sasl sdl slang -slp -snmp socks5 spell ssl -static -svga -tcltk -tcpd tetex tiff truetype -voodoo3 X xml xml2 -xmms xv -zeo zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" FEATURES="sandbox ccache"
Created an attachment (id=11186) [details] Patch for ncurses-5.3 so it does not rename itself to ncursesw if using --enable-widec
Created an attachment (id=11187) [details] Patch for ncurses-5.3-r1.ebuild to enable wide character (UTF-8) support
I think it is bad to rename ncursesw to ncurses - some apps rely on ncursesw being a seperate library. Perhaps symlinks and ldscripts would be better. I was going to submit a enhancement request for this - but you beat me to it. I am opposed to overloading the USE flag nls in this manner - this should come under unicode, utf8 or widec.
adding a dep since this has kinda to do with 18375
Did you ever tested to compile vim with your patch? Mine broke with a ncurses-w library only...
tried with ncurses-5.4-r3 and vim-6.3, all is fine :) I attach my ncurses ebuild ( with IUSE="unicode" ), the patch is the same
Created an attachment (id=37181) [details] sys-libs/ncurses/ncurses-5.4-r3.ebuild I need this patch in portage, so please test it ;) Thanks.
utf-8 support is now in ncurses-5.4-r4
Works fine now, at least for mutt. Thanks!
*** Bug 44897 has been marked as a duplicate of this bug. ***