View previous topic :: View next topic |
Author |
Message |
xabi n00b
Joined: 17 Feb 2004 Posts: 7 Location: Donostia
|
Posted: Tue Jan 02, 2007 3:53 pm Post subject: make menuconfig (lxdialog) and UTF-8 |
|
|
I have recently moved my Gentoo from ISO-8859-1 to UTF-8 and the Using UTF-8 with Gentoo guide provides good help to accomplish the change. My system now uses UTF-8, but there's a program that didn't like the change: ncurses-based make menuconfig dialog (lxdialog), the one used to configure the kernel. The special characters for drawing the borders (such as '|') show messed up, they only show correctly if i change PuTTY's configuration back to ISO-8859-1.
Has anybody experienced similar problems? Did you find a solution for this? |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Wed Jan 03, 2007 1:29 am Post subject: |
|
|
Have you tried rebuilding ncurses since the switch? Also, there's a setting in /etc/conf.d/consolefont which might be influencing things:
Code: |
CONSOLETRANSLATION="8859-1_to_uni"
|
I haven't looked too closely, so I don't know if this gets applied only to the chosen console font, or if the setting is used for terminal/console sessions in general. _________________ Thomas S. Howard |
|
Back to top |
|
|
wuzzerd Guru
Joined: 05 Jan 2005 Posts: 467 Location: New Mexico
|
Posted: Wed Jan 03, 2007 1:42 am Post subject: |
|
|
While trying to figure out the console font you could:
This works for me. I also have this problem with mc. |
|
Back to top |
|
|
nikaya Veteran
Joined: 13 May 2006 Posts: 1471 Location: Germany
|
Posted: Wed Jan 03, 2007 2:04 am Post subject: |
|
|
http://www.gentoo.org/doc/en/utf-8.xml#doc_chap3 wrote: |
Ncurses and Slang
Note: Ignore any mention of Slang in this section if you do not have it installed or do not use it.
It is wise to add unicode to your global USE flags in /etc/make.conf, and then to remerge sys-libs/ncurses and sys-libs/slang if appropriate. Portage will do this automatically when you update your system |
Source:
http://www.gentoo.org/doc/en/utf-8.xml#doc_chap3 _________________ Notes on Dhamma
How to waste your time: look for an explanation of consciousness, ask to know what feeling is. (Nanavira Thera) |
|
Back to top |
|
|
Black Imp Apprentice
Joined: 09 Oct 2004 Posts: 168
|
Posted: Fri Jan 12, 2007 3:48 am Post subject: |
|
|
why do I have the same problem without changing to unicode? |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Fri Jan 12, 2007 10:52 pm Post subject: |
|
|
I have this problem too; it's apparent in such ncurses output as menuconfig and alsamixer.
I would really like to know how to make it go away... as I clearly don't have enough changes to propogate to my dozen gentoo boxes ; ) Seriously, any fixes guys? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Fri Jan 12, 2007 11:03 pm Post subject: |
|
|
This is starting to look more and more like a bug somewhere in gentoo's handling of unicode and/or ncurses. Check out this topic:
GenKernel display is garbled _________________ Thomas S. Howard |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Fri Jan 12, 2007 11:09 pm Post subject: |
|
|
Oh yeah, I completely forgot about this other thread I posted on:
weird menuconfig screen _________________ Thomas S. Howard |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
|
Back to top |
|
|
Mandr4ke Apprentice
Joined: 25 Jul 2002 Posts: 214 Location: Chicago, IL
|
Posted: Sat Jan 13, 2007 2:39 am Post subject: |
|
|
I just did a fresh install and by default it's all messed up weather you use "unicode" or not in your use flags.
This never would occur provious as untill the latest major system update ncurses always displayed perfectly by default! |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jan 13, 2007 2:46 am Post subject: |
|
|
Black Imp wrote: | why do I have the same problem without changing to unicode? |
Have you changed profiles recently ?
Older profiles didn't have USE="unicode" in make.defaults , but the newer profiles do.
Take a look at the USE= line when you do "emerge --info". |
|
Back to top |
|
|
Black Imp Apprentice
Joined: 09 Oct 2004 Posts: 168
|
Posted: Sun Jan 14, 2007 4:10 am Post subject: |
|
|
thank you: no i have not changed anything. I've just installed the snapshots ready 2 or 3 weeks ago on a bios raid 0 system . Processor amd xp barton 2600+, abit nf7s v2. I have not installed unicod nor chaged profile thou ppl are telling me to do it for solving the problem. i've tried installing unicode but it gave my some error in setting variables and beside nothing chianged in displaying characters.
As i said in another topic entering "reset" the problem disappears but only for that console and not permanently
this could be a [edit]HINT.
I 've also tried to re-emerge ncurses and after glibc... nothin.
USE variable doesn't include 'unicode' flag
something set in kernel config file?
Last edited by Black Imp on Thu Jan 25, 2007 7:00 pm; edited 1 time in total |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sun Jan 14, 2007 5:12 am Post subject: |
|
|
Well, the profile may still have unicode set, so you'd have to have -unicode in make.conf to get rid of it. As far as the kernel, there in fact is an option under "File Systems", "Native Language Support", where you can define the default codepage and choose whether the unicode codepage is built in. _________________ Thomas S. Howard |
|
Back to top |
|
|
Black Imp Apprentice
Joined: 09 Oct 2004 Posts: 168
|
Posted: Wed Feb 14, 2007 4:50 pm Post subject: |
|
|
sorry I couldn't read here for a while. So you suggest to add -unicode to the USE list? have I to recompile the kernel then? |
|
Back to top |
|
|
Black Imp Apprentice
Joined: 09 Oct 2004 Posts: 168
|
Posted: Fri Feb 16, 2007 12:03 am Post subject: |
|
|
up |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Thu Oct 17, 2013 6:30 am Post subject: |
|
|
When I login to my machine from Windows using PuTTY, I get the following.
Code: | .config - Linux/x86 3.10.7-gentoo-r1 Kernel Configuration
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
lqqqqqqqqqqqq Linux/x86 3.10.7-gentoo-r1 Kernel Configuration qqqqqqqqqqqqk
x Arrow keys navigate the menu. <Enter> selects submenus --->. x
x Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, x
x <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> x
x for Search. Legend: [*] built-in [ ] excluded <M> module < > x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x Gentoo Linux ---> x x
x x [*] 64-bit kernel x x
x x General setup ---> x x
x x [*] Enable loadable module support ---> x x
x x -*- Enable the block layer ---> x x
x x Processor type and features ---> x x
x x Power management and ACPI options ---> x x
x x Bus options (PCI etc.) ---> x x
x x Executable file formats / Emulations ---> x x
x x [*] Networking support ---> x x
x mqqqqv(+)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
x <Select> < Exit > < Help > < Save > < Load > x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
|
But when I login directly from console (i.e. no remote login) or remotely from Ubuntu, all the lines show up correctly. Also, if I use the same problematic Windows/PuTTY to login to a different Gentoo box, the lines look fine.
Changing PuTTY's setting to "ISO-8859-1" does solve the problem, but then I'm not able to see any of the Unicode characters. If you already figured out, please share how you did. Thanks.
__
sol |
|
Back to top |
|
|
badm4n n00b
Joined: 12 Oct 2012 Posts: 2 Location: Pennsylvania
|
Posted: Sat Nov 09, 2013 9:12 pm Post subject: |
|
|
I used the instructions from the following page to correct this issue for my Gentoo setups at home.
http://www.koerner.in/2011/08/ugly-borders-and-lines-in-curses-based-programs-using-putty/
To summarize the steps from that page...
- From the main PuTTY window, navigate to Window > Translation category
- Ensure Remote character set is set to UTF-8
- Under Adjust how PuTTY handles line drawing characters select Use Unicode line drawing code points
- Navigate to Connection > Data
- Under Terminal details, enter putty for Terminal-type string
- Navigate to Session
- Highlight Default Settings and then click Save
The above steps will make the appropriate changes for any new or one-off sessions. If you have saved sessions (like I do) unfortunately, you will need to load each session and repeat the above steps, overwriting the original saved session. _________________ [ badm4n ] |
|
Back to top |
|
|
|