Localized date names

Nikolay Sivov bunglehead at gmail.com
Sun Oct 11 14:14:23 CDT 2009


Hi.

I'm trying to figure out the best way for adding genitive month names 
support for locales.
After some tests I've got the following:
- GetLocaleInfo doesn't return such names, only nominative names is 
returned;
- GetDateFormat returns genitive name both for "ddMMMM" and "MMMMdd"

Looking deeper GetDateFormat uses cache filled using GetLocaleInfo, so 
such data will never
get here cause it isn't provided with this call.
So the first question is am I able to directly load resource strings 
with null terminators inside?

MSDN states that (http://msdn.microsoft.com/en-us/library/cc194815.aspx) 
alternate month
forms are stored in the same string with null as a separator between forms.

Second question: what is the most efficient (by means a speed) way to 
rework format parsing to catch a case when genitive form
should be used? An obvious one is to search twice but I'm not sure about it.

Nikolay.



More information about the wine-devel mailing list