Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
550 B
C#

//
// https://bugzilla.novell.com/show_bug.cgi?id=379524
//
using System;
using System.Globalization;
using System.Threading;
class Program
{
static int Main (string [] args)
{
for (int i = 0; i < 1000; ++i) {
Thread thread = new Thread (new ThreadStart (Test));
if (i != 500)
thread.CurrentCulture = new CultureInfo ("en-CA");
thread.Start ();
}
return 1;
}
static void Test ()
{
string name = Thread.CurrentThread.CurrentCulture.Name;
if (name != "en-CA")
Environment.Exit (0);
}
}