[Wine] Problem with PowerBuilder 6-based app

Hugo Cardozo hugoac2004 at gmail.com
Wed Mar 19 09:20:29 CDT 2008


>I used the "WINEDEBUG=+nls" param when executing the app. And I included the 
>output in this e-mail. 
>It isn't the output of the whole program, just of the part when I get the 
>error of my first snapshot.
First, sorry for make this thread so long :)
Second: I forget to note that in the output I included, when I input the 
number (number one, in this case), the app received it correctly ( I think 
so, because of this output:

	trace:nls:MultiByteToWideChar cp 0 "1" -> L"1", ret = 1
	trace:nls:MultiByteToWideChar cp 0 "dwprop\x00" -> L"dwprop\0000", ret = 7
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:WideCharToMultiByte cp 0 L"1" -> (null), ret = 1

	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:MultiByteToWideChar cp 0 "%+#23.15e\x00" -> (null), ret = 10
	trace:nls:MultiByteToWideChar cp 0 "%+#23.15e\x00" -> L"%+#23.15e\0000", ret 
= 10
	trace:nls:WideCharToMultiByte cp 0 L"\0000" -> (null), ret = 1
	trace:nls:WideCharToMultiByte cp 0 L"\0000" -> "\x00", ret = 1
	trace:nls:MultiByteToWideChar cp 0 "dwprop\x00" -> L"dwprop\0000", ret = 7
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:MultiByteToWideChar cp 0 "+\x00" -> (null), ret = 2
	trace:nls:MultiByteToWideChar cp 0 "+\x00" -> L"+\0000", ret = 2
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:MultiByteToWideChar cp 0 "dwprop\x00" -> L"dwprop\0000", ret = 7
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:MultiByteToWideChar cp 0 "dwprop\x00" -> L"dwprop\0000", ret = 7
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:MultiByteToWideChar cp 0 "dwprop\x00" -> L"dwprop\0000", ret = 7
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5


and then the app shows the wrong char:

	trace:nls:WideCharToMultiByte cp 0 L"+" -> (null), ret = 1
	trace:nls:MultiByteToWideChar cp 0 "dwprop\x00" -> L"dwprop\0000", ret = 7
	trace:nls:MultiByteToWideChar cp 0 "MAIN\x00" -> L"MAIN\0000", ret = 5
	trace:nls:WideCharToMultiByte cp 0 L"+\0000" -> "+\x00", ret = 2

Why the function "MultiByteToWideChar" receives "1" and "WideCharToMultiByte" 
returns "+"?

Hugo S.




More information about the wine-users mailing list