mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Fixes for Chinese multibyte characters handling and cursor movement, patch
by Wang WenRui git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3244 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c6141f1144
commit
db705a8396
5 changed files with 143 additions and 61 deletions
|
|
@ -300,6 +300,10 @@ static void paste_send(void)
|
|||
} else if (active_entry->utf8) {
|
||||
out[utf16_char_to_utf8(arr[i], out)] = '\0';
|
||||
g_string_append(str, out);
|
||||
} else if (term_type == TERM_TYPE_BIG5) {
|
||||
if (arr[i] > 0xff)
|
||||
g_string_append_c(str, (arr[i] >> 8) & 0xff);
|
||||
g_string_append_c(str, arr[i] & 0xff);
|
||||
} else {
|
||||
g_string_append_c(str, arr[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue