Mark Wilden <> wrote:
> "Jon Skeet [C# MVP]" <> wrote in message
> news: om...
> >
> > Note that this test is not a culture-safe one. For instance, in Turkey,
> > I believe (if I remember the bug I had to fix in a system a while ago
> >
that "mail".ToUpper() != "MAIL".
>
> Just out of curiosity, did "mail".ToUpper() == "MAIL".ToUpper()?
Nope
using System;
using System.Globalization;
using System.Threading;
class Test
{
static void Main()
{
CultureInfo info = CultureInfo.CreateSpecificCulture("tr-TR");
Thread.CurrentThread.CurrentCulture = info;
Console.WriteLine ("mail".ToUpper()=="MAIL");
Console.WriteLine ("mail".ToUpper()=="MAIL".ToUpper());
}
}
ToLower() doesn't work either.
Isn't i18n fun?
--
Jon Skeet - <>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too