23
23
#include <gtk/gtk.h>
25
#include "terminal-app.h"
26
#include "terminal-debug.h"
25
27
#include "terminal-encoding.h"
26
#include "terminal-app.h"
27
28
#include "terminal-intl.h"
28
29
#include "terminal-profile.h"
29
30
#include "terminal-util.h"
209
210
(converted != NULL) &&
210
211
(strcmp (converted, ascii_sample) == 0);
212
#ifdef DEBUG_ENCODINGS
213
if (!encoding->valid)
215
g_print("Rejecting encoding %s as invalid:\n", encoding->charset);
216
g_print(" input \"%s\"\n", ascii_sample);
217
g_print(" output \"%s\" bytes read %u written %u\n",
218
converted ? converted : "(null)", bytes_read, bytes_written);
220
g_print (" Error: %s\n", error->message);
224
g_print ("Encoding %s is valid\n\n", encoding->charset);
213
#ifdef GNOME_ENABLE_DEBUG
214
_TERMINAL_DEBUG_IF (TERMINAL_DEBUG_ENCODINGS)
216
if (!encoding->valid)
218
_terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,
219
"Rejecting encoding %s as invalid:\n",
221
_terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,
224
_terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,
225
" output \"%s\" bytes read %u written %u\n",
226
converted ? converted : "(null)", bytes_read, bytes_written);
228
_terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,
233
_terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,
234
"Encoding %s is valid\n\n",
227
239
g_clear_error (&error);