# HG changeset patch # User zas_ # Date 1211269969 0 # Node ID bbe9cef644f880cff5bc8b70214ceaab47202114 # Parent 1af0ce40cf90a18e374af0b43f09cea8a8eb3abe Use print_term() instead of printf(), since it handles charset conversion from utf8 to locale if needed. diff -r 1af0ce40cf90 -r bbe9cef644f8 src/debug.c --- a/src/debug.c Mon May 19 11:09:23 2008 +0000 +++ b/src/debug.c Tue May 20 07:52:49 2008 +0000 @@ -13,6 +13,7 @@ #include "debug.h" #include "logwindow.h" +#include "ui_fileops.h" /* * Logging functions @@ -28,7 +29,7 @@ ret = vsnprintf(buf, sizeof(buf), format, ap); va_end(ap); - printf("%s", buf); + print_term(buf); if (strcmp(domain, DOMAIN_INFO) == 0) log_window_append(buf, LOG_NORMAL); else