Bugzilla – Attachment 68708 Details for
Bug 148380
Broken japanese letters in text console mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Patch to fix button hotkey with yast2-ncurses in CJK
yast2-ncurses-cjk-fix.diff (text/plain), 481 bytes, created by
Takashi Iwai
on 2006-02-15 19:53:59 UTC
(
hide
)
Description:
Patch to fix button hotkey with yast2-ncurses in CJK
Filename:
MIME Type:
Creator:
Takashi Iwai
Created:
2006-02-15 19:53:59 UTC
Size:
481 bytes
patch
obsolete
>--- src/NCstring.cc-dist 2006-02-15 20:46:41.000000000 +0100 >+++ src/NCstring.cc 2006-02-15 20:47:08.000000000 +0100 >@@ -438,9 +438,12 @@ void NCstring::getHotkey( ) const > wstring::size_type tpos = wstr.find_first_of( L'&' ); > if ( tpos != wstring::npos && tpos != wstr.size()-1 ) > { >+ size_t realpos = 0, t; >+ for ( t = 0; t < tpos; t++ ) >+ realpos += wcwidth( wstr[t] ); > wstr.erase( tpos, 1 ); > hotk = wstr[tpos]; >- hotp = tpos; >+ hotp = realpos; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 148380
: 68708