[Pidgin] #2526: russian words in finch
Pidgin
trac at pidgin.im
Mon Aug 13 02:43:14 EDT 2007
#2526: russian words in finch
----------------------------------+-----------------------------------------
Reporter: LongMan | Owner: sadrul
Type: defect | Status: new
Priority: minor | Milestone:
Component: finch (gnt/ncurses) | Version: 2.1.0
Resolution: | Keywords: finch internatialization unicode
Pending: 1 |
----------------------------------+-----------------------------------------
Changes (by sadrul):
* pending: 0 => 1
Comment:
What's your locale? What's your $TERM?
Does the following patch fix the problem:
{{{
--- finch/libgnt/gntmain.c cf7dfc3a027f32248b81ebdd8f876edf2daf3a1c
+++ finch/libgnt/gntmain.c 1af01b976335311f5c858daf566f608f1b4129eb
@@ -223,6 +223,7 @@ io_invoke(GIOChannel *source, GIOConditi
char keys[256];
int rd;
char *k;
+ char *loc = NULL;
if (wm->mode == GNT_KP_MODE_WAIT_ON_CHILD)
return FALSE;
@@ -251,8 +252,8 @@ io_invoke(GIOChannel *source, GIOConditi
if (HOLDING_ESCAPE)
keys[0] = '\033';
- k = keys;
-
+ loc = g_locale_to_utf8(keys, rd, NULL, NULL, NULL);
+ k = loc ? loc : keys;
#if 0
/* I am not sure what's happening here. If this actually does
something,
* then this needs to go in gnt_keys_refine. */
@@ -289,6 +290,7 @@ end:
k += p;
}
end:
+ g_free(loc);
gnt_wm_set_event_stack(wm, FALSE);
return TRUE;
}
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/2526#comment:1>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list