Or, how to avoid embarrassing bugs in Disk Management caused by Turkish localization. There’s a classic string localization problem in .NET development known as “The Turkish I”; there are two different versions of the capital I character in the Turkish written language, and they are not equal. Basically, if you’re comparing strings for equality, you’re going to run into issues if you do something like this: if (string1.ToUpper() == string2.ToUpper())
{
DoStuff();
}
In Disk Management, I was matching the string “\\PhysicalDisk0” to a variable, and forcing ToUpper() to make sure case wasn’t a factor. The result of...