Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 20006
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Martin Schlemmer (RETIRED) <azarah@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sascha Silbe <sascha-gentoo-bugzilla@silbe.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ncurses-5.3.utf8normal.patch Patch for ncurses-5.3 so it does not rename itself to ncursesw if using --enable-widec patch Sascha Silbe 2003-04-26 10:45 0000 932 bytes Details | Diff
ncurses-5.3-r2.ebuild.patch Patch for ncurses-5.3-r1.ebuild to enable wide character (UTF-8) support patch Sascha Silbe 2003-04-26 10:47 0000 1.03 KB Details | Diff
ncurses-5.4-r3.ebuild sys-libs/ncurses/ncurses-5.4-r3.ebuild text/plain Panard 2004-08-10 16:29 0000 5.14 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 20006 depends on: Show dependency tree
Bug 20006 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-04-26 10:44 0000
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 From Sascha Silbe 2003-04-26 10:45:30 0000 -------
Created an attachment (id=11186) [details]
Patch for ncurses-5.3 so it does not rename itself to ncursesw if using
--enable-widec

------- Comment #2 From Sascha Silbe 2003-04-26 10:47:48 0000 -------
Created an attachment (id=11187) [details]
Patch for ncurses-5.3-r1.ebuild to enable wide character (UTF-8) support

------- Comment #3 From Zhen Lin 2003-09-01 05:32:49 0000 -------
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 From Thomas Raschbacher 2003-12-08 23:26:09 0000 -------
adding a dep since this has kinda to do with 18375

------- Comment #5 From Lars Weiler (RETIRED) 2004-03-17 18:21:02 0000 -------
Did you ever tested to compile vim with your patch?  Mine broke with a
ncurses-w library only...

------- Comment #6 From Panard 2004-08-10 16:28:29 0000 -------
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 From Panard 2004-08-10 16:29:57 0000 -------
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.

------- Comment #8 From Heinrich Wendel (RETIRED) 2004-08-19 07:45:32 0000 -------
utf-8 support is now in ncurses-5.4-r4

------- Comment #9 From Sascha Silbe 2004-08-19 15:18:03 0000 -------
Works fine now, at least for mutt.
Thanks!


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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug