Mercurial > hg
comparison mcabber/src/screen.c @ 115:33bff2c57293
[/trunk] Changeset 129 by mikael
* Decode UTF-8 before logging message to file.
author | mikael |
---|---|
date | Sun, 24 Apr 2005 20:50:16 +0000 |
parents | 96d239239c7a |
children | d7fbd5293385 |
comparison
equal
deleted
inserted
replaced
114:065d8368c36b | 115:33bff2c57293 |
---|---|
12 #include "commands.h" | 12 #include "commands.h" |
13 #include "compl.h" | 13 #include "compl.h" |
14 #include "roster.h" | 14 #include "roster.h" |
15 #include "parsecfg.h" | 15 #include "parsecfg.h" |
16 #include "lang.h" | 16 #include "lang.h" |
17 #include "utf8.h" | |
18 #include "utils.h" | 17 #include "utils.h" |
19 #include "list.h" | 18 #include "list.h" |
20 | 19 |
21 #define window_entry(n) list_entry(n, window_entry_t, list) | 20 #define window_entry(n) list_entry(n, window_entry_t, list) |
22 | 21 |
524 scr_WriteInWindow(jid, text, TRUE, prefix, FALSE); | 523 scr_WriteInWindow(jid, text, TRUE, prefix, FALSE); |
525 } | 524 } |
526 | 525 |
527 void scr_WriteIncomingMessage(const char *jidfrom, const char *text) | 526 void scr_WriteIncomingMessage(const char *jidfrom, const char *text) |
528 { | 527 { |
529 char *buffer = utf8_decode(text); | |
530 // FIXME expand tabs / filter out special chars... | 528 // FIXME expand tabs / filter out special chars... |
531 scr_WriteMessage(jidfrom, buffer, "<== "); | 529 scr_WriteMessage(jidfrom, text, "<== "); |
532 free(buffer); | |
533 top_panel(inputPanel); | 530 top_panel(inputPanel); |
534 update_panels(); | 531 update_panels(); |
535 doupdate(); | 532 doupdate(); |
536 } | 533 } |
537 | 534 |