]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxchar.cpp
wchar_t (4 bytes) / unichar (2 bytes) problems first attempt to fix
[wxWidgets.git] / src / common / wxchar.cpp
index be0dc8d53d8b3057b7d0518656921eb81a73a71e..6d682be476acc6685a656be996f0c07566a41d72 100644 (file)
@@ -599,7 +599,13 @@ int vfwprintf(FILE *stream, const wxChar *format, va_list argptr)
     if ( rc != -1 )
     {
         // we can't do much better without Unicode support in libc...
-        if ( fprintf(stream, "%s", s.mb_str()) == -1 )
+        if ( fprintf(stream, "%s",
+#if wxUSE_UNICODE
+                     s.mb_str().data()
+#else
+                     s.c_str()
+#endif
+                 ) == -1 )
             return -1;
     }