String.Compare method does not work properly for Turkish Language RRS feed

  • Question

  • Hello,
    I have a code whichcompares two strings for equality as below.


    (string.Compare(WebAppConfig.TelerikSkinName, UTL.TelerikSkin.TelerikSkin_Windows, true) == 0)
    In my code WebAppConfig.TelerikSkinName returns  "Win2003"
                    UTL.TelerikSkin.TelerikSkin_Windows returns "WIN2003" (Please check all are in CAPS Letter)
    This works fine for almost all languages. Even if there is case mismatch bacause third parameter for compare method id true.

    In my application I can change the user language and culture. I modified the user Language to TURKISH and Culture to "tr-TR". Now this same above method does not work. I mean the third parameter does nto work. If I give both strings as "WIN2003" or "win2003" it works.

    Can any one please let me know which this fails in Turkish? Also is there any list of languages and cultures where in this kind of condition will fail?

    Tuesday, March 31, 2009 10:25 AM