Recent

Author Topic: Korean message using OutputDebugStringW is displayed incorrectly in 'Event Log'  (Read 245 times)

marunguy

  • New Member
  • *
  • Posts: 23
Korean message using Windows.OutputDebugStringW is displayed incorrectly in 'Event Log' window.
The value of string variable including Korean is displayed correctly in 'Local Variables' window.
When executed standalone, it is displayed correctly in the debug view.
https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

Code: Pascal  [Select][+][-]
  1. function TestOutputDebugStringW(): Integer;
  2. var
  3.     test_msg: string = 'abc가나다';
  4.     test_msg_u: UnicodeString;
  5. begin
  6.     test_msg_u := lazUTF8.UTF8ToUTF16(test_msg);
  7.     Windows.OutputDebugStringW(PWideChar(test_msg_u));
  8.     result := 1;    // to set breakpoint
  9. end;

Windows 10, Lazarus 2.2.2 windows 64bit, FPC 3.2.2
« Last Edit: May 20, 2022, 08:12:55 am by marunguy »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8474
  • Debugger - SynEdit - and more
    • wiki
Please report a bug on gitlab. Thanks

 

TinyPortal © 2005-2018