Oh Henry :).

He didn't implement dumpchr correctly for unicode...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2003-12-18 10:17:53 +00:00
parent 86d35a4466
commit 4ce84ac957

View File

@@ -769,12 +769,16 @@ static void
dumpchr(chr c, dumpchr(chr c,
FILE *f) FILE *f)
{ {
#ifdef wxUSE_UNICODE
fprintf(f, "Debugging not implemented in unicode mode");
#else
if (c == '\\') if (c == '\\')
fprintf(f, "\\\\"); fprintf(f, "\\\\");
else if (c > ' ' && c <= '~') else if (c > ' ' && c <= '~')
putc((char) c, f); putc((char) c, f);
else else
fprintf(f, "\\u%04lx", (long) c); fprintf(f, "\\u%04lx", (long) c);
#endif
} }
#endif /* REG_DEBUG */ #endif /* REG_DEBUG */