Re: no LANG=C wine winecfg on Mac OS? (texts are always translated)

2009-10-10 Thread Huang, Zhangrong
No, please file a bug. 2009/10/9 joerg-cyril.hoe...@t-systems.com: Hi, On Linux, I can toggle Wine's idea about the current language by starting with: LANG=C or =de_DE.UTF-8 or fr_... wine winecfg Winecfg then displays text in the chosen locale (english for C). This works well in Ubuntu

Re: [try 4] gdi32/tests: Add tests for GdiGetCodePage.

2008-07-25 Thread Huang, Zhangrong
2008/7/25 Alexandre Julliard [EMAIL PROTECTED]: It doesn't work here: ../../../tools/runtest -q -P wine -M gdi32.dll -T ../../.. -p gdi32_test.exe.so font.c touch font.ok font.c:850: Test succeeded inside todo block: data index 2: expected font codepage 1252, got 1252 font.c:853: Test

Re: [PATCH] wined3d: Fix the OpenGL driver version for Mac OS X NVIDIA driver.

2008-07-24 Thread Huang, Zhangrong
Hi, 2008/7/24 Michael Karcher [EMAIL PROTECTED]: What is the advantage of that compared to major = strtol(gl_string, gl_string_cursor,10); ? Or even replace the whole scanning code by if(sscanf(gl_string, %d.%d, major, minor) != 2) ERR_(d3d_caps)(...) It

Re: gdi32: Implement automatic font substitution

2008-07-03 Thread Huang, Zhangrong
Hi, 2008/7/3 Lei Zhang [EMAIL PROTECTED]: On Wed, Jul 2, 2008 at 5:13 PM, Huang, Zhangrong [EMAIL PROTECTED] wrote: Are these the only fonts that work? What about other fonts like arphic-uming? http://packages.debian.org/etch/ttf-arphic-uming If you don't have those fonts, try the following 2

Re: Sorry, resend, with patch now. [try 3] gdi32/tests: Add tests for GdiGetCodePage.

2008-07-03 Thread Huang, Zhangrong
Hi, 2008/7/3 Alexandre Julliard [EMAIL PROTECTED]: It doesn't work here: ../../../tools/runtest -q -P wine -M gdi32.dll -T ../../.. -p gdi32_test.exe.so font.c touch font.ok font.c:830: Test failed: data index 14: expected font codepage 42, got 1252 font.c:830: Test failed: data index 17:

Re: EnterCriticalSection throws exception?

2008-07-03 Thread Huang, Zhangrong
Hi, 2008/7/3 Maarten Lankhorst [EMAIL PROTECTED]: Hello, I think that is a bad idea, while there might be 1 or 2 real genuine uses for only throwing an exception while debugging, 99% of the time it's really wine deadlocking itself, it's wine's own fault and I would rather see the backtraces

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Huang, Zhangrong
Hi, * Append all fonts on child_list so that if a character is not available in the font, * other fonts will be automatically used. This is how Windows does to get a CJK character * when a latin font is specified. That's not correct, actually Windows does this by using FontLink

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Huang, Zhangrong
Hi, 2008/7/2 Liu Qishuai [EMAIL PROTECTED]: No. 1. In Windows XP, I deleted the FontLink register key and rebooted, and the Chinese characters are still displaying correctly. I guess gdi32.dll has hard-coded the default FontLink registry, of course no prove. 2. I moved simsun.ttc (The

Re: secur32: Allow loading external schannel.dll.

2008-07-02 Thread Huang, Zhangrong
Hi, 2008/6/25 Austin Lund [EMAIL PROTECTED]: I cannot get this to work with googletalk.exe. No luck, googletalk.exe still can't login. I get the following messages: trace:secur32:SECUR32_initializeProviders trace:secur32:_tryLoadProvider loaded Lschannel.dll, InitSecurityInterfaceA is

EnterCriticalSection throws exception?

2008-07-02 Thread Huang, Zhangrong
Hi, According to MSDN http://msdn.microsoft.com/en-us/library/ms682608(VS.85).aspx: EnterCriticalSection can raise EXCEPTION_POSSIBLE_DEADLOCK if a wait operation on the critical section times out. The timeout interval is specified by the following registry value:

Re: [try 2] user32: GetMenuStringA now returns correct buffer length for multibyte menu text. (with test)

2008-07-02 Thread Huang, Zhangrong
Hmm, cause GetMenuStringW uses strlenW, so I just copy it. 2008/7/3 Juan Lang [EMAIL PROTECTED]: Hi Zhangrong, +static inline unsigned int strlenW( const WCHAR *str ) +{ +const WCHAR *s = str; +while (*s) s++; +return s - str; +} Is there some reason you can't just use

Re: [try 2] user32: GetMenuStringA now returns correct buffer length for multibyte menu text. (with test)

2008-07-02 Thread Huang, Zhangrong
behavior across all Windows operating systems. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems. 2008/7/3 Huang, Zhangrong [EMAIL PROTECTED]: Hmm, cause GetMenuStringW uses strlenW, so I just copy it. -- $ apt-get

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Huang, Zhangrong
Have you tried to set FontLink? It works for me, there are no places have font problem. (without automatic font substitution patch) see: http://bugs.winehq.org/attachment.cgi?id=14546 [Software\\Microsoft\\Windows NT\\CurrentVersion\\FontLink\\SystemLink] 1208451304 Microsoft Sans

Re: EnterCriticalSection throws exception?

2008-07-02 Thread Huang, Zhangrong
Hi, 2008/7/3 Rob Shearman [EMAIL PROTECTED]: A bit of lateral thinking is needed, I feel, since contention between threads is going to be an issue even if the lock doesn't time out. The wininet code should be converted to using getaddrinfo and as a bonus it will also start supporting IPv6

Re: secur32: Allow loading external schannel.dll.

2008-06-24 Thread Huang, Zhangrong
Hi, Thanks for mentioning that, I'll update and resend it. 2008/6/24 Juan Lang [EMAIL PROTECTED]: Hi Zhangrong, your patch looks fine, but I'd appreciate it if you could update the comment for SECUR32_addProvider in secur32_priv.h to reflect your changes. --Juan -- $ apt-get moo (__)

Re: secur32: Allow loading external schannel.dll.

2008-06-24 Thread Huang, Zhangrong
Hi, Which app did you tried? I tried googletalk.exe, it worked as excepted. 2008/6/24 Kai Blin [EMAIL PROTECTED]: The patch doesn't load for me (it looks empty). Could someone bounce it to me off-list? -- $ apt-get moo (__) (oo) /--\/ / | || * /\---/\ ~~ ~~ Have you mooed

Re: [resend] gdi32/tests: Add tests for GdiGetCodePage.

2008-06-24 Thread Huang, Zhangrong
Sorry, I didn't get that. These tests will pass on Windows 2000/XP/Vista in different languages except Wine, there are no failing tests. Should I mark these as todo_wine? And could we hardcode CJK codepages to fix GdiGetCodePage? Thanks. 2008/6/24 Dmitry Timoshkov [EMAIL PROTECTED]: In the bug

Re: [resend] gdi32/tests: Add tests for GdiGetCodePage.

2008-06-24 Thread Huang, Zhangrong
2008/6/24 Dmitry Timoshkov [EMAIL PROTECTED]: And could we hardcode CJK codepages to fix GdiGetCodePage? What do you mean? I mean fix GdiGetCodePage like: if (charset == ANSI_CHARSET || charset == DEFAULT_CHARSET) { cp = GetACP(); if (cp == 936 || cp == 950 || cp == .)

Re: [resend] gdi32/tests: Add tests for GdiGetCodePage.

2008-06-24 Thread Huang, Zhangrong
2008/6/24 Dmitry Timoshkov [EMAIL PROTECTED]: That definitely will break any charset specified in the font (like symbol, russian, etc.) in CJK locale. Most likely what happens is a font linking/substituting for ANSI_CHARSET. I think it doesn't. If users create font with ANSI_CHARSET or

Re: ole32: Fix a failed call to DllGetClassObject while retrieving class object interface pointer.

2008-06-17 Thread Huang, Zhangrong
Hi, ole32: get_moniker_for_progid_display_name should fallback to using IClassFactory to get IParseDisplayName if getting it directly fails. This fix looks OK, but still gets lots of error messages: err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002

Re: ole32: Fix a failed call to DllGetClassObject while retrieving class object interface pointer.

2007-12-22 Thread Huang, Zhangrong
as todo, 1 failure), 0 skipped. Although the test failed, but loading class {228d9a81-c302-11cf-9aa4-00aa004a5691} success. 2007/12/21, Robert Shearman [EMAIL PROTECTED]: Huang, Zhangrong wrote: See dlls/ole32/compobj.c, static HRESULT apartment_getclassobject(struct apartment *apt, LPCWSTR

Re: ole32: Fix a failed call to DllGetClassObject while retrieving class object interface pointer.

2007-12-22 Thread Huang, Zhangrong
2007/12/23, James Hawkins [EMAIL PROTECTED]: On Dec 22, 2007 9:46 AM, Huang, Zhangrong [EMAIL PROTECTED] wrote: Hi, Sorry for the delay. Here is a test, pls import the attached registry files, and copy native activeds.dll, adsldpc.dll, adsldp.dll to your windows system32 dir, and patch

Re: ole32: Fix a failed call to DllGetClassObject while retrieving class object interface pointer.

2007-12-22 Thread Huang, Zhangrong
hi, 2007/12/23, James Hawkins [EMAIL PROTECTED]: On Dec 22, 2007 6:57 PM, Maarten Lankhorst [EMAIL PROTECTED] wrote: James Hawkins schreef: On Dec 22, 2007 12:25 PM, Huang, Zhangrong [EMAIL PROTECTED] wrote: 2007/12/23, James Hawkins [EMAIL PROTECTED] Disassembling what