"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/fe-text/term-terminfo.c" between
irssi-1.2.2.tar.gz and irssi-1.2.3.tar.gz

About: irssi is a terminal based IRC client that also supports SILC and ICB protocols via plugins.

term-terminfo.c  (irssi-1.2.2):term-terminfo.c  (irssi-1.2.3)
skipping to change at line 675 skipping to change at line 675
because then we never see a CONT to call the restoration because then we never see a CONT to call the restoration
code. On the other hand we also cannot remove the CONT code. On the other hand we also cannot remove the CONT
handler because then nothing would restore the screen when handler because then nothing would restore the screen when
Irssi is killed with TSTP/STOP from external. */ Irssi is killed with TSTP/STOP from external. */
terminfo_cont(current_term); terminfo_cont(current_term);
irssi_redraw(); irssi_redraw();
} }
static int input_utf8(const unsigned char *buffer, int size, unichar *result) static int input_utf8(const unsigned char *buffer, int size, unichar *result)
{ {
unichar c = g_utf8_get_char_validated((char *)buffer, size); unichar c = g_utf8_get_char_validated((char *) buffer, size);
/* GLib >= 2.63 do not accept Unicode NUL anymore */
if (c == (unichar) -2 && *buffer == 0 && size > 0)
c = 0;
switch (c) { switch (c) {
case (unichar)-1: case (unichar)-1:
/* not UTF8 - fallback to 8bit ascii */ /* not UTF8 - fallback to 8bit ascii */
*result = *buffer; *result = *buffer;
return 1; return 1;
case (unichar)-2: case (unichar)-2:
/* need more data */ /* need more data */
return -1; return -1;
default: default:
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)