[Bug 19821] New: AutoHotKey reports wrong Nls language
http://bugs.winehq.org/show_bug.cgi?id=19821 Summary: AutoHotKey reports wrong Nls language Product: Wine Version: 1.1.28 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: brawxingerole(a)mailueberfall.de When I run Gimp 2.6.7 it starts localised under WindowsXP German and in Wine installation 1.1.28 on german localised Ubuntu 8.04. Gimp gets the current localisation information from registry key: HKEY_CURRENT_USER\Control Panel\International\Locale I then tried to run a modified appinstall script gimp.ahk which determines current locale language with Autohotkey's internal %A_Language% variable. Under Windows XP German this modified script detects language correctly and runs it errorfree. Running the script in "German Standard" locale (0407) Wine installation on Ubuntu 8.04 doesn't work. AutoHotKey greps the information for the variable from registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Language\InstallLanguage Checking the keys reveals that AutoHotKey fails under Wine because there the HKLM\...\Nls\Language\InstallLanguage key contains always 0409 independent of Linux locale. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #1 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-08-23 10:02:36 --- What is the exact problem? And with which application? The summary is about AutoHotKey but you talk about Gimp... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #2 from Thomas Heckel <thomas.heckel(a)gmx.net> 2009-08-23 10:08:47 --- autohotkey has the problem. It gets the wrong locale. Gimp is another localised program which uses another method to gather the language. With 1st app/method there's the bug, with 2nd app/method there's no problem. Will this explain it further? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #3 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-08-23 10:18:31 --- (In reply to comment #2)
autohotkey has the problem. It gets the wrong locale.
Why do you think it gets wrong locale? What is exactly the problem? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #4 from Thomas Heckel <thomas.heckel(a)gmx.net> 2009-08-23 10:27:31 --- Registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Language\InstallLanguage should contain same number as registry key HKEY_CURRENT_USER\Control Panel\International\Locale to make both Autohotkey and gimp detect the language of Windows right. Under Wine this is not the case. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #5 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-08-23 10:34:51 --- (In reply to comment #4)
Registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Language\InstallLanguage should contain same number as registry key HKEY_CURRENT_USER\Control Panel\International\Locale to make both Autohotkey and gimp detect the language of Windows right.
What is the purpose of that check?
Under Wine this is not the case.
What exactly happens if the value of that key is english? That key has nothing to do with the user locale. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #6 from Thomas Heckel <thomas.heckel(a)gmx.net> 2009-08-23 12:04:43 --- (In reply to comment #5)
(In reply to comment #4)
Registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Language\InstallLanguage should contain same number as registry key HKEY_CURRENT_USER\Control Panel\International\Locale to make both Autohotkey and gimp detect the language of Windows right.
What is the purpose of that check? What exactly happens if the value of that key is english? That key has nothing to do with the user locale. If "Nls" key is 0409 (English) then Autohotkey reports to the scripts which are using the internal AHK variable "A_Language" they're under an english environment. Which is not the case, as other apps show correctly. But the - maybe wrong - assumption of AHK with using "Nls" key works well under Windows.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source CC| |austinenglish(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement --- Comment #7 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-08-23 22:54:09 --- (In reply to comment #6)
If "Nls" key is 0409 (English) then Autohotkey reports to the scripts which are using the internal AHK variable "A_Language" they're under an english environment. Which is not the case, as other apps show correctly. But the - maybe wrong - assumption of AHK with using "Nls" key works well under Windows.
That can't work under Windows. For instance my version of XP is English (and InstallLanguage is 409), but the locale is Russian (419). So Wine can be treated as an English OS with Russian locale/language pack. I'd suggest to report the bug to AutoHotKey developers. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #8 from Thomas Heckel <thomas.heckel(a)gmx.net> 2009-08-31 05:40:37 --- (In reply to comment #7)
(In reply to comment #6)
If "Nls" key is 0409 (English) then Autohotkey reports to the scripts which are using the internal AHK variable "A_Language" they're under an english environment. Which is not the case, as other apps show correctly. But the - maybe wrong - assumption of AHK with using "Nls" key works well under Windows.
That can't work under Windows. For instance my version of XP is English (and InstallLanguage is 409), but the locale is Russian (419). So Wine can be treated as an English OS with Russian locale/language pack.
I'd suggest to report the bug to AutoHotKey developers.
I've reported it to Chris Mallett from Autohotkey and maybe it would be changed to a more precise way in a future major release. And from my own research I agree to you. It seems to be possible to take another system language for the dialogs after installation (and done so by Multilingual-User-Interface Editions of Windows like Windows Embedded). AFAIK from MSDN resources and infos from Chris the registry keys "InstallLanguage" and "Default" will contain the default language code page of the CD or that was selected during Windows installation. ( http://msdn.microsoft.com/en-us/library/dd374098(VS.85,printer).aspx , http://technet.microsoft.com/en-us/library/cc957158(printer).aspx 's comment of "Default" entry under topic "LanguageID REG_SZ Filename" ). On the other way, "MUI products are available only through volume agreements from Microsoft. They are not available through retail channels." (from Wikipedia Multilingual_User_Interface) As I mentioned in bug opening comment, AHK's quirked approach (yes it should have better used something like GetThreadLocale ) works well under my retail Windows XP. So it's probably a question of compatibility: should Wine imitate MUI features or should it better present as a "windows" which was installed with current LC* environment settings. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #9 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-08-31 07:25:28 --- What will happen under Windows if the version of Windows is German but locale set to English, or other way around? There are other combinations to think about (Russian/German, Russian/English, etc.). -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #10 from Thomas Heckel <thomas.heckel(a)gmx.net> 2009-08-31 07:47:58 --- (In reply to comment #9)
What will happen under Windows if the version of Windows is German but locale set to English, or other way around? There are other combinations to think about (Russian/German, Russian/English, etc.). I don't understand your question. Do you mean setting the system UI language /"InstallLanguage" in Control Panel to another one? This isn't possible in a retail version of Windows. There are only changes possible for System/User/Thread(?) Locale, Input Locale, Geographic ID.
Do you think it would be possible to make a Wine test case that would show this behaviour (in usp10)? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 --- Comment #11 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-08-31 10:11:47 --- That was mostly a theoretical question to think of. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19821 butraxz(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |butraxz(a)gmail.com --- Comment #12 from butraxz(a)gmail.com 2012-05-23 13:43:56 CDT --- This bug has not been updated for three years. Is this still an issue i current (1.5.4) or newer wine ? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=19821 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED --- Comment #13 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Abandoned -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=19821 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #14 from Austin English <austinenglish(a)gmail.com> --- Closing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org