Re: oleaut32: be more explicit with locale dependent parsing of dates (try 2)

2010-04-15 Thread Nikolay Sivov
On 4/14/2010 23:56, André Hentschel wrote: Nikolay Sivov schrieb: On 4/14/2010 22:51, André Hentschel wrote: case 0x3: /* TTT TTTDD TTTDDD */ - if (iDate&& dp.dwCount == 3) + if (dp.dwCount == 3&& !strncmp(ShortDate,"dd.MM.yy",8)) case 0x1B

Re: oleaut32: be more explicit with locale dependent parsing of dates (try 2)

2010-04-14 Thread André Hentschel
Nikolay Sivov schrieb: > On 4/14/2010 22:51, André Hentschel wrote: >> case 0x3: /* TTT TTTDD TTTDDD */ >> - if (iDate&& dp.dwCount == 3) >> + if (dp.dwCount == 3&& !strncmp(ShortDate,"dd.MM.yy",8)) >> >> > >> case 0x1B: /* localized DDDTTT */ >> - if (!iDate) >> +

Re: oleaut32: be more explicit with locale dependent parsing of dates (try 2)

2010-04-14 Thread Nikolay Sivov
On 4/14/2010 22:51, André Hentschel wrote: case 0x3: /* TTT TTTDD TTTDDD */ - if (iDate&& dp.dwCount == 3) + if (dp.dwCount == 3&& !strncmp(ShortDate,"dd.MM.yy",8)) case 0x1B: /* localized DDDTTT */ - if (!iDate) + if (strncmp(ShortDate,"dd.MM.yy",8))

Re: oleaut32: be more explicit with locale dependent parsing of dates

2010-04-09 Thread Alexandre Julliard
André Hentschel writes: > @@ -7708,7 +7708,7 @@ HRESULT WINAPI VarDateFromStr(OLECHAR* strIn, LCID > lcid, ULONG dwFlags, DATE* pd >break; > > case 0x1B: /* localized DDDTTT */ > - if (!iDate) > + if (PRIMARYLANGID(lcid) != LANG_GERMAN) Obviously you cannot hardcode spe