Skip to content

Commit

Permalink
Use print_term() instead of printf(), since it handles charset conver…
Browse files Browse the repository at this point in the history
…sion

from utf8 to locale if needed.
  • Loading branch information
Laurent Monin committed May 20, 2008
1 parent 11819b3 commit a8d4af5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "debug.h"

#include "logwindow.h"
#include "ui_fileops.h"

/*
* Logging functions
Expand All @@ -28,7 +29,7 @@ gint log_domain_printf(const char *domain, const gchar *format, ...)
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
Expand Down

0 comments on commit a8d4af5

Please sign in to comment.