Merge branch '1883_winput_handle_0xff_char'

* 1883_winput_handle_0xff_char:
  Ticket #1883: fixed handling of 0xff character in WInput widget.
This commit is contained in:
Andrew Borodin 2009-12-24 22:18:30 +03:00
commit 48aaef13d8

View File

@ -1891,8 +1891,8 @@ void
stuff (WInput *in, const char *text, int insert_extra_space)
{
input_disable_update (in);
while (*text)
handle_char (in, *text++);
while (*text != '\0')
handle_char (in, (unsigned char) *text++); /* unsigned extension char->int */
if (insert_extra_space)
handle_char (in, ' ');
input_enable_update (in);