With-* test in configure (was: wine and RedHat 9)

Shachar Shemesh wine-devel at shemesh.biz
Sat May 3 04:50:12 CDT 2003


This is a shot in the dark. Please let me know if the attached patch 
fixes your problem.

          Shachar

Rob Hughes wrote:

>On Fri, 2003-05-02 at 01:53, Shachar Shemesh wrote:
>  
>
>>Rob Hughes wrote:
>>
>>    
>>
>>>Here's a screen shot from a debug message. I'm assuming this uses the
>>>standard wine language code?
>>>
>>>On Thu, 2003-05-01 at 15:54, Sylvain Petreolle wrote:
>>> 
>>>
>>>      
>>>
>>>>Huh ? English is the default lang for wine, it shouldnt happen.
>>>>Could you give a precise example ? Im using fr_FR.UTF-8 on RH9.
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Most of the pop up dialogs are showing this, but sometimes it's only
>>>>>one
>>>>>button or the other. LANG is set to
>>>>>
>>>>>LANG=LANG="en_US.UTF-8", which is the default in RH 8 and 9.
>>>>>
>>>>>Thanks,
>>>>>Rob
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>I'm thinking of three possible explanations for this:
>>
>>   1. Tracing the specific dialog Rob showed, it calls "MessageBoxA",
>>      which calls "MessageBoxExA" with a language identifier
>>      "LANG_DEFAULT". According to
>>      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/messageboxex.asp
>>      the langid parameter is "reserved". Can anyone confirm that there
>>      is any version of Windows that uses it?
>>   2. Even if it did what it was supposed to do, shouldn't the paramter
>>      at windows/msgbox.c, line 347, say
>>      "MAKELANG(LANG_NEUTRAL,SUBLANG_DEFAULT)" instead of "LANG_DEFAULT"?
>>   3. The English resource don't have "SUBLANG_DEFAULT" for something
>>      (does not appear to be the case in latest CVS).
>>
>>Rob - what version of Wine are you using?
>>Also, can you please paste here the output of the command "locale"?
>>    
>>
>
>I'm running CVS from this past Sunday. Locale output is:
>
>LANG=en_US.UTF-8
>LC_CTYPE="en_US.UTF-8"
>LC_NUMERIC="en_US.UTF-8"
>LC_TIME="en_US.UTF-8"
>LC_COLLATE="en_US.UTF-8"
>LC_MONETARY="en_US.UTF-8"
>LC_MESSAGES="en_US.UTF-8"
>LC_PAPER="en_US.UTF-8"
>LC_NAME="en_US.UTF-8"
>LC_ADDRESS="en_US.UTF-8"
>LC_TELEPHONE="en_US.UTF-8"
>LC_MEASUREMENT="en_US.UTF-8"
>LC_IDENTIFICATION="en_US.UTF-8"
>LC_ALL=
>
>
>  
>


-- 
Shachar Shemesh
Open Source integration consultant
Home page & resume - http://www.shemesh.biz/

-------------- next part --------------
Index: windows/msgbox.c
===================================================================
RCS file: /home/sun/sources/cvs/wine/windows/msgbox.c,v
retrieving revision 1.42
diff -u -r1.42 msgbox.c
--- windows/msgbox.c	24 Jan 2003 00:54:58 -0000	1.42
+++ windows/msgbox.c	3 May 2003 09:47:52 -0000
@@ -344,7 +344,7 @@
  */
 INT WINAPI MessageBoxW( HWND hwnd, LPCWSTR text, LPCWSTR title, UINT type )
 {
-    return MessageBoxExW(hwnd, text, title, type, LANG_NEUTRAL);
+    return MessageBoxExW(hwnd, text, title, type, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT));
 }
 
 


More information about the wine-devel mailing list