]> git.saurik.com Git - wxWidgets.git/commitdiff
don't pass NULL pointer to printf(), this crashes Solaris printf
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Sep 2005 16:50:47 +0000 (16:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Sep 2005 16:50:47 +0000 (16:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 878e90946529dd713a45210f9338d77e85ff6ba1..76a1931763a83ce4694b0c5d2d95686be292f370 100644 (file)
@@ -1429,10 +1429,11 @@ wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
                 // VS: we must not output an error here, since wxWidgets will safely
                 //     fall back to using wxEncodingConverter.
                 wxLogTrace(TRACE_STRCONV, wxT("Impossible to convert to/from charset '%s' with iconv, falling back to wxEncodingConverter."), name);
-                //wxLogError(
             }
         }
-        wxLogTrace(TRACE_STRCONV, wxT("wchar_t charset is '%s', needs swap: %i"), ms_wcCharsetName, ms_wcNeedsSwap);
+        wxLogTrace(TRACE_STRCONV,
+                   wxT("wchar_t charset is '%s', needs swap: %i"),
+                   ms_wcCharsetName ? ms_wcCharsetName : "<none>", ms_wcNeedsSwap);
     }
     else // we already have ms_wcCharsetName
     {