Bug 148380

Summary: Broken japanese letters in text console mode
Product: [openSUSE] SUSE Linux 10.1 Reporter: Takashi Iwai <tiwai>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch to fix button hotkey with yast2-ncurses in CJK

Description Takashi Iwai 2006-02-06 13:52:40 UTC
YaST shows broken japanese letters in text console mode.
The help dialog in the left side looks OK, but the buttons are corrupt.
For example, the cancel button shoud appear '[中止(R)]' but it appears '[中止毢R)]'.

My wild guess is the highlighting of the acceleration key in the button...
Comment 1 Mike Fabian 2006-02-06 14:08:24 UTC
The same bug already existed in SuSE 10.0.
Comment 2 Takashi Iwai 2006-02-15 19:53:06 UTC
it's because the mismatch of the value returned from find_first_of() and the actual position to be displayed.

In NCstring::getHotkey(), find_first_of() is used to identify the hot key position, but it's the number of wide chars, not the column position.

The fixed patch is below.
Comment 3 Takashi Iwai 2006-02-15 19:53:59 UTC
Created attachment 68708 [details]
Patch to fix button hotkey with yast2-ncurses in CJK
Comment 4 Takashi Iwai 2006-02-15 19:54:50 UTC
The packages are on mbuild/bari-tiwai-117.
Comment 5 Takashi Iwai 2006-02-17 11:52:08 UTC
PING: The bug still exists on beta4.
Comment 6 Martin Vidner 2006-02-22 16:49:14 UTC
Thanks! Fixed in yast2-ncurses-2.13.10.