https://bugs.winehq.org/show_bug.cgi?id=38888
Bug ID: 38888 Summary: DDE cannot deal with Chinese path Product: Wine Version: 1.7.46 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: jactry92@gmail.com Distribution: ---
Created attachment 51824 --> https://bugs.winehq.org/attachment.cgi?id=51824 dde_testcase.exe
reproduce:
1. $ touch ~/.wine/drive_c/测试.jpg 2. Change "[HKEY_CLASSES_ROOT\jpegfile\shell\open\command]" to "C:\windows\system32\winebrowser.exe" "-nohome" 3. $ wine dde_testcase.exe
Expected: 测试.jpg will be opened by native picture viewer which winebrowser find.
Actually: Didn't open 测试.jpg.
And from log with '+exec,+winebrowser' we can know that winebrowser didn't get the right path from dde: ---snip--- trace:winebrowser:ddeCb dde_cb: 1062, 0000, 0x0, 0xc001, 0xc000, 0x0, 0033f4a0, 00000000 trace:winebrowser:ddeCb dde_cb: 8072, 0000, 0x1483c0, 0xc001, 0xc000, 0x0, 0033f4a0, 00000000 trace:exec:SHELL_ArgifyW 0x63bb48, 256, L""file:%1",,-1,,,,,", L"C:\\6d4b\8bd5.jpg", 0x0, 0x63d510 trace:exec:SHELL_ArgifyW used 26 of 256 space trace:exec:dde_connect L""file:%1",,-1,,,,," L"C:\\6d4b\8bd5.jpg" => L""file:C:\\6d4b\8bd5.jpg",,-1,,,,," trace:winebrowser:ddeCb dde_cb: 4050, 0000, 0x1483c0, 0xc001, 0x0, 0x147f4a, 00000000, 00000000 err:winebrowser:get_url_from_dde Unable to retrieve URL from string L""" trace:exec:SHELL_execute retval 33 err:winebrowser:wmain Usage: winebrowser URL
https://bugs.winehq.org/show_bug.cgi?id=38888
--- Comment #1 from Jactry Zeng jactry92@gmail.com --- Created attachment 51825 --> https://bugs.winehq.org/attachment.cgi?id=51825 source of dde_testcase.exe
https://bugs.winehq.org/show_bug.cgi?id=38888
--- Comment #2 from Jactry Zeng jactry92@gmail.com --- Created attachment 51826 --> https://bugs.winehq.org/attachment.cgi?id=51826 Dirty hack
A dirty hack to let dde_testcase.exe work in expected way.
https://bugs.winehq.org/show_bug.cgi?id=38888
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=38888
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch, testcase
https://bugs.winehq.org/show_bug.cgi?id=38888
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #51826|0 |1 is obsolete| |
--- Comment #3 from Jactry Zeng jactry92@gmail.com --- Created attachment 53490 --> https://bugs.winehq.org/attachment.cgi?id=53490 Dirty hack
https://bugs.winehq.org/show_bug.cgi?id=38888
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com Keywords| |source