[Mono-dev] CurrentCulture Empty?

Zoltan Varga vargaz at gmail.com
Wed Jun 7 20:10:21 EDT 2006


                  Hi,

  Its not empty, its CultureInfo.InvariantCulture, which has no name, so
ToString () will return an empty string for it.

         Zoltan

On 6/4/06, Cory Foy <usergroup at cornetdesign.com> wrote:
> Hi All,
>
> We noticed that our tests in NUnit around CultureInfo were failing with
> an empty culture info. I was going to dig through the Mono source, but
> CultureInfo is apparantly not the most straightforward thing to pull.
>
> Do I need to open a bug report on this?
>
> Thanks!
>
> Cory
>
> -----
>
> foyc at dilbert ~/workspace/monobugs $ mono -V
> Mono JIT compiler version 1.1.15, (C) 2002-2005 Novell, Inc and
> Contributors. www.mono-project.com
>          TLS:           normal
>          GC:            Included Boehm (with typed GC)
>          SIGSEGV:       normal
>          Disabled:      none
>
> foyc at dilbert ~/workspace/monobugs $ cat CultureBug.cs
> using System;
> using System.Globalization;
>
> public class TestCultureInfo
> {
>          public static void Main(String[] args)
>          {
>                  Console.WriteLine("Current Culture: " +
> CultureInfo.CurrentCulture.ToString());
>                  Console.WriteLine("Current UICulture: " +
> CultureInfo.CurrentUICulture.ToString());
>          }
> }
>
> foyc at dilbert ~/workspace/monobugs $ mcs CultureBug.cs
>
> foyc at dilbert ~/workspace/monobugs $ mono CultureBug.exe
> Current Culture:
> Current UICulture:
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list