Removed test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -798,14 +798,7 @@ bool OutputString(wxOutputStream& stream,
|
|||||||
wxUnusedVar(convMem);
|
wxUnusedVar(convMem);
|
||||||
if ( !convFile )
|
if ( !convFile )
|
||||||
convFile = &wxConvUTF8;
|
convFile = &wxConvUTF8;
|
||||||
#if 1
|
|
||||||
// JACS test
|
|
||||||
const wxWX2MBbuf buf(str.mb_str(*convFile));
|
|
||||||
if (!buf.length())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
stream.Write((const char*)buf, strlen((const char*)buf));
|
|
||||||
#else
|
|
||||||
const wxScopedCharBuffer buf(str.mb_str(*convFile));
|
const wxScopedCharBuffer buf(str.mb_str(*convFile));
|
||||||
if ( !buf.length() )
|
if ( !buf.length() )
|
||||||
{
|
{
|
||||||
@@ -815,8 +808,6 @@ bool OutputString(wxOutputStream& stream,
|
|||||||
}
|
}
|
||||||
|
|
||||||
stream.Write(buf, buf.length());
|
stream.Write(buf, buf.length());
|
||||||
#endif
|
|
||||||
|
|
||||||
#else // !wxUSE_UNICODE
|
#else // !wxUSE_UNICODE
|
||||||
if ( convFile && convMem )
|
if ( convFile && convMem )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user