diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/windowsdebugoutput.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/comphelper/windowsdebugoutput.hxx b/include/comphelper/windowsdebugoutput.hxx index 45a38d007bc3..a50fc2aa0c7e 100644 --- a/include/comphelper/windowsdebugoutput.hxx +++ b/include/comphelper/windowsdebugoutput.hxx @@ -487,7 +487,8 @@ inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, t case VT_SAFEARRAY: break; // FIXME case VT_LPSTR: - stream << rVariant.bstrVal; + stream << std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t>().to_bytes( + rVariant.bstrVal); break; case VT_LPWSTR: stream << std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t>().to_bytes( |