FreeBSD Bugzilla – Attachment 29732 Details for
Bug 50374
[PATCH] chinese/irssi readline display error in Big5 terminal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 911 bytes, created by
Yi-Hsuan Hsin
on 2003-03-27 22:10:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yi-Hsuan Hsin
Created:
2003-03-27 22:10:07 UTC
Size:
911 bytes
patch
obsolete
>--- src/fe-text/gui-readline.c.orig Mon Nov 11 15:00:02 2002 >+++ src/fe-text/gui-readline.c Fri Mar 28 02:24:38 2003 >@@ -50,6 +50,10 @@ > static ENTRY_REDIRECT_REC *redir; > static int escape_next_key; > >+static int big5high = FALSE; >+static unichar prekey = '\0'; >+ >+ > static int readtag; > static time_t idle_time; > >@@ -148,7 +152,25 @@ > > idle_time = time(NULL); > >- if (key < 32) { >+ if(big5high || is_big5_hi(key)) >+ { >+ if(big5high) >+ { >+ big5high = FALSE; >+ str[0] = prekey; >+ str[1] = key; >+ str[2] = '\0'; >+ gui_entry_insert_text(active_entry, str); >+ return; >+ } >+ else >+ { >+ big5high = TRUE; >+ prekey = key; >+ return; >+ } >+ } >+ else if (key < 32) { > /* control key */ > str[0] = '^'; > str[1] = (char)key+'@';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50374
: 29732