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 <[EMAIL PROTECTED]> 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

-----

[EMAIL PROTECTED] ~/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

[EMAIL PROTECTED] ~/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());
         }
}

[EMAIL PROTECTED] ~/workspace/monobugs $ mcs CultureBug.cs

[EMAIL PROTECTED] ~/workspace/monobugs $ mono CultureBug.exe
Current Culture:
Current UICulture:
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to