ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.51 by sf-exg, Thu Dec 1 11:27:34 2011 UTC vs.
Revision 1.52 by sf-exg, Fri Dec 2 09:02:05 2011 UTC

108} 108}
109 109
110// a wrapper for register_translation that converts the input string 110// a wrapper for register_translation that converts the input string
111// to utf-8 and expands 'list' syntax. 111// to utf-8 and expands 'list' syntax.
112void 112void
113keyboard_manager::register_user_translation (KeySym keysym, unsigned int state, const char *trans) 113keyboard_manager::register_user_translation (KeySym keysym, unsigned int state, const wchar_t *ws)
114{ 114{
115 wchar_t *ws = rxvt_mbstowcs (trans);
116 char *translation = rxvt_wcstoutf8 (ws); 115 char *translation = rxvt_wcstoutf8 (ws);
117 free (ws);
118 116
119 if (strncmp (translation, "list", 4) == 0 && translation [4] 117 if (strncmp (translation, "list", 4) == 0 && translation [4]
120 && strlen (translation) < STRING_MAX) 118 && strlen (translation) < STRING_MAX)
121 { 119 {
122 char *prefix = translation + 4; 120 char *prefix = translation + 4;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines