[Mono-dev] [PATCH] CultureInfo_construct datetime_format and number_format fix for Windows.

Bill Holmes billholmes54 at gmail.com
Tue Jun 23 17:41:44 EDT 2009


Hi,

On Windows users can customize the regional options for their
language.  To get this information you can call GetLocaleInfo to
obtain each individual setting.  The attached patch is a new
implementation of
ves_icall_System_Globalization_CultureInfo_construct_datetime_format
and ves_icall_System_Globalization_CultureInfo_construct_number_format
for Windows to obtain the correct settings.

Also this patch contains a fix the missing implementation of
g_win32_getlocale in eglib.

-bill

2009-06-23  Bill Holmes  <billholmes54 at gmail.com>

	* locales.c  (ves_icall_System_Globalization_CultureInfo_construct_datetime_format)
	  (ves_icall_System_Globalization_CultureInfo_construct_number_format) :
	  For Windows call GetLocaleInfoA when possible to populate the culture info.
	  This is needed when users customize a language for the regional options.

	* locales.c (get_current_locale_name) : Replace the eglib call to
g_win32_getlocale.

	Contributed under MIT/X11 license.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CultureInfo_construct.patch
Type: application/octet-stream
Size: 14077 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090623/b70f60e8/attachment-0001.obj 


More information about the Mono-devel-list mailing list