|
From: SourceForge.net <no...@so...> - 2013-05-22 16:43:26
|
Bugs item #3613732, was opened at 2013-05-22 07:14 Message generated for change (Comment added) made by kichik You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373085&aid=3613732&group_id=22049 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Plugin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Amir Szekely (kichik) Summary: Passing unicode values to plugins doesn't work Initial Comment: Version: 3.0a0 I write my plugin and to test unicode i use function __declspec(dllexport) void mypluginfunc(HWND hWndParent, int string_size, TCHAR *variables, stack_t **stacktop, extra_parameters *extra) { EXDLL_INIT(); WCHAR szComponent[256]; popstring(szComponent); int len = (int)wcslen(szComponent); // make a little change to input parameter for (int i = 0; i < len; ++i) szComponent[i] += 1; // push back on the stack pushstring(szComponent); } } and script: OutFile "testInstaller.exe" ;Unicode true Section MessageBox MB_OK "Hello world ! Yes..." myplugin::mypluginfunc "FDFDqqq我們" Pop $0 MessageBox MB_OK "ret = $0" SectionEnd In the result chinese letters are wrongly encoded (in 2.46-Unicode it works fine) contact: xyzzy88 at gmail dot com ---------------------------------------------------------------------- >Comment By: Amir Szekely (kichik) Date: 2013-05-22 09:43 Message: Just to verify, as it seems to work fine for me, you did uncomment "Unicode true" first, right? Does it work for you with System::Call? System::Call 'user32::MessageBox(i0,t"안녕하세요!",t"hello",i0)' ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373085&aid=3613732&group_id=22049 |