Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180257 - dev-perl/Curses-1.15: unicode support
Summary: dev-perl/Curses-1.15: unicode support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Perl team
URL: http://rt.cpan.org/Public/Bug/Display...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 18:40 UTC by Martin von Gagern
Modified: 2010-01-29 17:39 UTC (History)
0 users

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


Attachments
Sample program (test.pl,1.91 KB, text/plain)
2007-05-29 18:44 UTC, Martin von Gagern
Details
Changes to Curses-1.15.ebuild adding unicode USE flag (180257.diff,1.05 KB, patch)
2007-06-06 12:24 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2007-05-29 18:40:48 UTC
Currently the perl wrapper around ncurses behaves strangely for UTF-8 locales, and probably for any other multibyte-locales as well. I managed to work around the issue by exporting LD_PRELOAD=/lib/libncursesw.so but it would be nice if the ebuild could link against ncursesw instead of ncurses if the unicode USE flag is enabled. Or would you consider this an upstream issue?
Comment 1 Martin von Gagern 2007-05-29 18:44:25 UTC
Created attachment 120631 [details]
Sample program

This is a stripped down version of a program that caused me trouble. It simply allows you to enter one line of text, and provides some cursor movement as well as a 72 characters blue background. You will notice that when you enter some non-ASCII characters like German umlauts, you will get garbage on the screen, the blue area will change in size, and cursor movement will stop working properly. Experiment a bit, it might be that you won't get all these effects immediately.
Comment 2 Martin von Gagern 2007-05-29 19:53:28 UTC
I filed an upstream RFE as well, and adjusted the URL field here.
http://rt.cpan.org/Public/Bug/Display.html?id=27335
Comment 3 Martin von Gagern 2007-06-06 12:24:04 UTC
Created attachment 121329 [details, diff]
Changes to Curses-1.15.ebuild adding unicode USE flag

While the upstream bug is concerned with whether libncursesw should be the default, Gentoo users specifying the unicode USE flag clearly state their opinion on this, I believe. I just created a modified ebuild that will use the wide character enabled versions of ncurses if the unicode USE flag is given.
Comment 4 Martin von Gagern 2007-10-16 15:16:42 UTC
My patch from comment #3 works well here in daily use. I would assume it fit for inclusion in an official ebuild.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-27 19:13:49 UTC
Rejected usptream -> WONTFIX.
Comment 6 Martin von Gagern 2010-01-29 17:39:07 UTC
Seems this got fixed after all, in bug #217096. I'm happy for it. :-)