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

2009-06-23 Thread Bill Holmes
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  

* 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.


CultureInfo_construct.patch
Description: Binary data
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


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

2009-06-30 Thread Bill Holmes
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 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  
>
>        * 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.
>


CultureInfo_construct.patch
Description: Binary data
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list