changeset 693:bbe9cef644f8

Use print_term() instead of printf(), since it handles charset conversion from utf8 to locale if needed.
author zas_
date Tue, 20 May 2008 07:52:49 +0000
parents 1af0ce40cf90
children a3218946bd2d
files src/debug.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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