Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20006 - [PATCH] Wide character (UTF-8) support for ncurses
Summary: [PATCH] Wide character (UTF-8) support for ncurses
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 44897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-26 10:44 UTC by Sascha Silbe
Modified: 2005-01-30 13:41 UTC (History)
5 users (show)

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


Attachments
Patch for ncurses-5.3 so it does not rename itself to ncursesw if using --enable-widec (ncurses-5.3.utf8normal.patch,932 bytes, patch)
2003-04-26 10:45 UTC, Sascha Silbe
Details | Diff
Patch for ncurses-5.3-r1.ebuild to enable wide character (UTF-8) support (ncurses-5.3-r2.ebuild.patch,1.03 KB, patch)
2003-04-26 10:47 UTC, Sascha Silbe
Details | Diff
sys-libs/ncurses/ncurses-5.4-r3.ebuild (ncurses-5.4-r3.ebuild,5.14 KB, text/plain)
2004-08-10 16:29 UTC, Panard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2003-04-26 10:44:16 UTC
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"
Comment 1 Sascha Silbe 2003-04-26 10:45:30 UTC
Created attachment 11186 [details, diff]
Patch for ncurses-5.3 so it does not rename itself to ncursesw if using --enable-widec
Comment 2 Sascha Silbe 2003-04-26 10:47:48 UTC
Created attachment 11187 [details, diff]
Patch for ncurses-5.3-r1.ebuild to enable wide character (UTF-8) support
Comment 3 Zhen Lin 2003-09-01 05:32:49 UTC
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.
Comment 4 Thomas Raschbacher gentoo-dev 2003-12-08 23:26:09 UTC
adding a dep since this has kinda to do with 18375
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2004-03-17 18:21:02 UTC
Did you ever tested to compile vim with your patch?  Mine broke with a ncurses-w library only...
Comment 6 Panard 2004-08-10 16:28:29 UTC
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
Comment 7 Panard 2004-08-10 16:29:57 UTC
Created attachment 37181 [details]
sys-libs/ncurses/ncurses-5.4-r3.ebuild


I need this patch in portage, so please test it ;)

Thanks.
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-19 07:45:32 UTC
utf-8 support is now in ncurses-5.4-r4
Comment 9 Sascha Silbe 2004-08-19 15:18:03 UTC
Works fine now, at least for mutt.
Thanks!

Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-21 03:39:42 UTC
*** Bug 44897 has been marked as a duplicate of this bug. ***