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

Bill Holmes billholmes54 at gmail.com
Tue Jun 30 09:50:46 EDT 2009


Hi,

I have updated this patch to correct a bug we found since it was
originally posted.

-bill

On Tue, Jun 23, 2009 at 5:41 PM, Bill Holmes<billholmes54 at gmail.com> wrote:
> 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: 14160 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090630/a150c01a/attachment-0001.obj 


More information about the Mono-devel-list mailing list