oleaut32 1/2: [RESEND 2] Implements function varformat:VarWeekdayName

Alexandre Julliard julliard at winehq.org
Thu Sep 28 03:57:20 CDT 2006


"Benjamin Arai" <me at benjaminarai.com> writes:

> +  if (fAbbrev)
> +    if (iFirstDay == 0)
> +      localeValue = LOCALE_SABBREVDAYNAME1 + ((iWeekday + iFirstDay + 5) % 7);
> +    else
> +      localeValue = LOCALE_SABBREVDAYNAME1 + ((iWeekday + iFirstDay + 4) % 7);
> +  else
> +    if (iFirstDay == 0)
> +      localeValue = LOCALE_SDAYNAME1 + ((iWeekday + iFirstDay + 5) % 7);
> +    else
> +      localeValue = LOCALE_SDAYNAME1 + ((iWeekday + iFirstDay + 4) % 7);

iFirstDay == 0 is supposed to mean system default, but that is
locale-dependent, you can't simply hardcode it.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list