[Boost-bugs] [Boost C++ Libraries] #12021: WaitForDebugEventEx should be called to enable unicode in OutputDebugStringW

Subject: [Boost-bugs] [Boost C++ Libraries] #12021: WaitForDebugEventEx should be called to enable unicode in OutputDebugStringW
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-26 07:39:31


#12021: WaitForDebugEventEx should be called to enable unicode in
OutputDebugStringW
--------------------------------------------+------------------------------
 Reporter: Michael Marcin <mike.marcin@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.61.0
 Severity: Problem | Keywords:
--------------------------------------------+------------------------------
 From the MSDN documentation for OutputDebugString and WaitForDebugEventEx:

   Important In the past, the operating system did not output Unicode
 strings via OutputDebugStringW and instead only output ASCII strings. To
 force OutputDebugStringW to correctly output Unicode strings, debuggers
 are required to call WaitForDebugEventEx to opt into the new behavior. On
 calling WaitForDebugEventEx, the operating system will know that the
 debugger supports Unicode and is specifically opting into receiving
 Unicode strings.

 This is a Windows 10 api, it can be detected with code similar to:


 {{{
 typedef BOOL(WINAPI *MYWAITFORDEBUGEVENT)(
             _Out_ LPDEBUG_EVENT lpDebugEvent,
             _In_ DWORD dwMilliseconds
             );
 static auto WFDEX =
 MYWAITFORDEBUGEVENT(GetProcAddress(GetModuleHandleW(L"kernel32.dll"),
 "WaitForDebugEventEx"));
 }}}

 (Note I had added several external links but trace rejected my bug as spam
 when I tried to submit this issue).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12021>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC