+2012-10-18 Tom Tromey <tromey@redhat.com>
+
+ * valprint.c (generic_emit_char, generic_printstr): Pass size of
+ gdb_wchar_t to convert_between_encodings.
+
2012-10-17 Yao Qi <yao@codesourcery.com>
* breakpoint.c (invalidate_bp_value_on_memory_change): Add one
convert_between_encodings (INTERMEDIATE_ENCODING, host_charset (),
obstack_base (&wchar_buf),
obstack_object_size (&wchar_buf),
- 1, &output, translit_char);
+ sizeof (gdb_wchar_t), &output, translit_char);
obstack_1grow (&output, '\0');
fputs_filtered (obstack_base (&output), stream);
convert_between_encodings (INTERMEDIATE_ENCODING, host_charset (),
obstack_base (&wchar_buf),
obstack_object_size (&wchar_buf),
- 1, &output, translit_char);
+ sizeof (gdb_wchar_t), &output, translit_char);
obstack_1grow (&output, '\0');
fputs_filtered (obstack_base (&output), stream);