diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 51de73e3..033af077 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -1928,7 +1928,7 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data) sfree(old); } debug(" - final output, special, generic encoding = [%s]\n", - charset_to_localenc(output_charset), string_string); + string_string); sfree(string_string); #endif /* diff --git a/utils.c b/utils.c index 61786d0a..df128a22 100644 --- a/utils.c +++ b/utils.c @@ -858,7 +858,7 @@ void debug_memdump(const void *buf, int len, bool L) dputs(" "); /* 3 spaces */ foo[i] = ' '; } else { - debug_printf("%c%02.2x", + debug_printf("%c%2.2x", &p[i] != (unsigned char *) buf && i % 4 ? '.' : ' ', p[i] );