Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299802 - Failure to use accented characters in app-editors/nedit-5.5-r1
Summary: Failure to use accented characters in app-editors/nedit-5.5-r1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 20:01 UTC by Jerome Potts
Modified: 2012-02-09 12:21 UTC (History)
0 users

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


Attachments
partial log of the install of app-editors/nedit-5.5-r1 (1250500074-install-app-editors_nedit-5.5-r1:0::gentoo.out,13.55 KB, text/plain)
2010-01-05 20:07 UTC, Jerome Potts
Details
output of "locale", and of "equery" (gentoo-299082,4.29 KB, text/plain)
2010-01-31 23:49 UTC, Jerome Potts
Details
build log (app-editors_nedit.build,19.66 KB, text/plain)
2010-02-01 00:08 UTC, Jerome Potts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Potts 2010-01-05 20:01:29 UTC
Using the compose key feature of Xorg which works elsewhere, i find myself unable to obtain the desired result with Nedit: i get unexpected characters instead. I tried changing the default ISO 8859-1 font to an ISO 10646-1, but i get the same results

Reproducible: Always

Steps to Reproduce:
1. Press the compose key
2. Press single quote key
3. Press "e"

Actual Results:  
"é"

Expected Results:  
"é"

My research has led me to http://www.nedit.org/faq/sect_bugs.php#N1118
I am wondering about this -DNO_XMIM build option. Does it get used in the Gentoo package build process ?
Here is another pointer: http://www.nedit.org/pipermail/develop/2004-September/009777.html
Comment 1 Jerome Potts 2010-01-05 20:07:32 UTC
Created attachment 215328 [details]
partial log of the install of app-editors/nedit-5.5-r1

Attached is an old log of a previous failed install of Nedit. Possibly of some help to see the selected build options; i don't see the -DNO_XMIM in it. Perhaps it crashed too early?
Comment 2 Dawid Węgliński (RETIRED) gentoo-dev 2010-01-21 12:48:44 UTC
Does following patch fix your issue?

diff -u -r1.9 nedit-5.5-r1.ebuild
--- nedit-5.5-r1.ebuild 15 Sep 2009 02:51:23 -0000      1.9
+++ nedit-5.5-r1.ebuild 21 Jan 2010 12:48:08 -0000
@@ -27,7 +27,7 @@
        epatch "${FILESDIR}/${P}-motif23.patch"
        epatch "${FILESDIR}/${P}-off-by-one.patch"
        sed -i -e "s:-Wl,-Bstatic::" makefiles/Makefile.linux
-       sed -i -e "s:CFLAGS=-O:CFLAGS=${CFLAGS}:" makefiles/Makefile.linux
+       sed -i -e "s:CFLAGS=-O:CFLAGS=${CFLAGS} -DNO_XMIM:" makefiles/Makefile.linux
        sed -i -e 's:"/bin/csh":"/bin/sh":' source/preferences.c
 }
Comment 3 Jerome Potts 2010-01-30 21:36:13 UTC
(In reply to comment #2)

Thanks, there is a bit of improvement, the actual results are now:
"'e"
...not quite it yet, but not as bad as previous.
Do we need to also try those -DROWCOLPATCH and-g CFLAGS ?

Comment 4 Jerome Potts 2010-01-30 22:28:48 UTC
(In reply to comment #3)
> (In reply to comment #2)
> 
> Thanks, there is a bit of improvement, the actual results are now:
> "'e"

Uh, on second thought, that's not much of an improvement, since it means that the compose key mechanism isn't heeded any longer. Sorry for the slow thinking.
Comment 5 Jerome Potts 2010-01-31 23:49:05 UTC
Created attachment 218044 [details]
output of "locale", and of "equery"

Actually, i now discover that if i launch NEdit from the command line, i get a "UTF8 locale not supported" message, regardless of whether i built with the "DNO_XMIM" patch or not.
I'm searching for where i might have set that locale, but no luck so far:
- No such thing in my $HOME/.nedit/nedit.rc
- when logged on as "root", where there is no nedit.rc file, i get the same message. There are no NEdit files under /etc.
- Both "env | grep -i utf" and "set | grep -i utf" return:
  LANG=en_US.UTF-8
  LC_CTYPE=fr_FR.utf8
- Both "env | grep -i locale" and "set | grep -i locale" return empty.
- "Text Fonts" in Preferences list the primary font as "-*-courier-medium-r-normal--*-120-*-*-*-iso8859-1", and the other fonts are derived from that primary, with the same code page at the end.
- app-editors/nedit has no "utf8" USE flag, or similar

See attachment for related info.
Comment 6 Jerome Potts 2010-02-01 00:08:59 UTC
Created attachment 218045 [details]
build log
Comment 7 Pacho Ramos gentoo-dev 2012-02-09 12:21:46 UTC
Still valid with 5.5_p20110116?