http://bugs.winehq.org/show_bug.cgi?id=28170
Summary: "Text Service and Input Languages" crash: Unimplemented function USER32.dll.LoadKeyboardLayoutEx called Product: Wine Version: 1.3.26 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com
Created an attachment (id=36090) --> (http://bugs.winehq.org/attachment.cgi?id=36090) Log: unimplemented function USER32.dll.LoadKeyboardLayoutEx
1. copy native input.dll, sptip.dll, and sapi.dll
2. regsvr32 sptip.dll for class {dcbd6fa8-032f-11d3-b5b1-00c04fc324a1}, regsvr32 sapi.dll for class {a910187f-0c7a-45ac-92cc-59edafb77b53}
3. import keyboard_layouts.reg with regedit, which is download from http://www.geekstogo.com/forum/index.php?app=core&module=attach%C2%A7ion... ( referer url: http://www.geekstogo.com/forum/topic/222396-cant-change-language-settings-fo... )
4. start the "Text Service and Input Languages" : $ wine control input.dll
(notes: without step 3, there will be an "incompatible keyboard driver detected" error, and the input.dll control panel can not display complete, I'm not sure if it this a wine bug)
5. click ok, then crash:
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes fixme:msctf:InputProcessorProfiles_GetLanguageList Semi-STUB:(0x13afd0) wine: Call from 0x7bc4c896 to unimplemented function USER32.dll.LoadKeyboardLayoutEx, aborting
http://bugs.winehq.org/show_bug.cgi?id=28170
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
http://bugs.winehq.org/show_bug.cgi?id=28170
--- Comment #1 from fracting fracting@gmail.com 2011-08-24 07:56:35 CDT --- here is the minimal regedit file to avoid "incompatible keyboard driver detected" error, works for me with LANG=zh_CN.UTF-8
--- snip --- Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000409] "Layout Display Name"="@C:\Windows\system32\input.dll,-5000" "Layout File"="KBDUS.DLL" "Layout Text"="US" --- snip ---
http://bugs.winehq.org/show_bug.cgi?id=28170
--- Comment #2 from Austin English austinenglish@gmail.com 2012-01-03 16:51:28 CST --- Created attachment 38247 --> http://bugs.winehq.org/attachment.cgi?id=38247 stub
try this
http://bugs.winehq.org/show_bug.cgi?id=28170
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28170
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru 2012-01-03 22:12:14 CST --- (In reply to comment #2)
try this
+HKL WINAPI LoadKeyboardLayoutEx(DWORD unknown, LPCWSTR pwszKLID, UINT Flags) +{
- FIXME("stub! (%d, %s, %d)\n", unknown, debugstr_w(pwszKLID), Flags);
- return FALSE;
+}
1. Returning FALSE from an API supposed to return an HKL is wrong. 2. Why not simply forward it to a not Ex version, or better other way around? 3. It's not clear it this API should have both A and W versions and one of them (which one?) have a shortcut to this one. 4. Is there any reason that you think it has unicode arg(s)? 5. Once again using hungarian style in Wine is something strongly discouraged. 6. Usually flags (and unknowns) are printed in hex.
https://bugs.winehq.org/show_bug.cgi?id=28170
--- Comment #4 from Austin English austinenglish@gmail.com --- Still unimplemented.
http://bugs.winehq.org/show_bug.cgi?id=28170
Tom a3732043@drdrb.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |a3732043@drdrb.net
--- Comment #5 from Tom a3732043@drdrb.net --- Still missing.
https://bugs.winehq.org/show_bug.cgi?id=28170
--- Comment #6 from Austin English austinenglish@gmail.com --- Still unimplemented in 1.7.51.
https://bugs.winehq.org/show_bug.cgi?id=28170
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38247|0 |1 is obsolete| |
--- Comment #7 from Austin English austinenglish@gmail.com --- Created attachment 53227 --> https://bugs.winehq.org/attachment.cgi?id=53227 stubs (try 2)
https://bugs.winehq.org/show_bug.cgi?id=28170
acescopezz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |acescopezz@gmail.com
--- Comment #8 from acescopezz@gmail.com --- Could someone review the patch and maybe resend it?
https://bugs.winehq.org/show_bug.cgi?id=28170
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|"Text Service and Input |"Text Service and Input |Languages" crash: |Languages" needs |Unimplemented function |unimplemented function |USER32.dll.LoadKeyboardLayo |USER32.dll.LoadKeyboardLayo |utEx called |utEx called
https://bugs.winehq.org/show_bug.cgi?id=28170
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=47439
https://bugs.winehq.org/show_bug.cgi?id=28170
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #53227|0 |1 is patch| |
https://bugs.winehq.org/show_bug.cgi?id=28170
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/user32-LoadKeybo | |ardLayoutEx
https://bugs.winehq.org/show_bug.cgi?id=28170
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #9 from Vijay Kamuju infyquest@gmail.com --- I have checked the patch and resent with corrections. The first argument of the function is HKL (a handle to keyboard layout). Checked metasploit related documentation for function signature.
https://bugs.winehq.org/show_bug.cgi?id=28170
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |a71223eed9c09733178012cb762 | |cbfef1ea86b7c
--- Comment #10 from Vijay Kamuju infyquest@gmail.com --- Fix committed and now in main tree. https://source.winehq.org/git/wine.git/commit/a71223eed9c09733178012cb762cbf...
https://bugs.winehq.org/show_bug.cgi?id=28170
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.6.