summaryrefslogtreecommitdiff
path: root/include/comphelper/windowsdebugoutput.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/windowsdebugoutput.hxx')
-rw-r--r--include/comphelper/windowsdebugoutput.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/comphelper/windowsdebugoutput.hxx b/include/comphelper/windowsdebugoutput.hxx
index d4e3372d5bec..17c60b3d74cc 100644
--- a/include/comphelper/windowsdebugoutput.hxx
+++ b/include/comphelper/windowsdebugoutput.hxx
@@ -291,7 +291,8 @@ inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, t
stream << *(double*)rVariant.byref;
break; // FIXME
case VT_BSTR:
- stream << (OLECHAR*)rVariant.byref;
+ stream << std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t>().to_bytes(
+ *(OLECHAR**)rVariant.byref);
break;
case VT_DISPATCH:
stream << rVariant.byref;
@@ -415,7 +416,8 @@ inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, t
stream << (double)rVariant.date;
break; // FIXME
case VT_BSTR:
- stream << rVariant.bstrVal;
+ stream << std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t>().to_bytes(
+ rVariant.bstrVal);
break;
case VT_DISPATCH:
stream << rVariant.pdispVal;