Forum > Debugger

Korean message using OutputDebugStringW is displayed incorrectly in 'Event Log'


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.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function TestOutputDebugStringW(): Integer;var    test_msg: string = 'abc가나다';    test_msg_u: UnicodeString;begin    test_msg_u := lazUTF8.UTF8ToUTF16(test_msg);    Windows.OutputDebugStringW(PWideChar(test_msg_u));    result := 1;    // to set breakpointend;
Windows 10, Lazarus 2.2.2 windows 64bit, FPC 3.2.2

Please report a bug on gitlab. Thanks


[0] Message Index

Go to full version