Atara,
> I am looking for a site that will include information about
> specification of languages that might cause other bugs.
Are they bugs? Did you contact MS directly to verify they are bugs?
I would contact Microsoft directly if I suspected an alleged bug in the
framework that did not allow me to compare "i" to "I"!
> Are you aware of such a site?
In addition to the links below try asking this "down the hall" in the
microsoft.public.dotnet.internationalization newsgroup I suspect will offer
you a plethora of more sites!
Note: I would strongly discourage your code to "workaround" this problem as
you may actually be introducing new problems for other cultures!
I would make sure that I was using the "correct" compare method. In addition
to the "=" operator, there is String.Compare & String.CompareOridinal with
overloads. I would make sure I had a good understanding (or at least good
enough) of cultures & how strings worked in the various cultures.
For example:
Imports System.Globalization
' This is effectively what "string1.ToUpper() = string2.ToUpper()" does:
If String.Compare(string1, string2, True, CultureInfo.CurrentCulture) =
0 Then
' This is effectively what you loop is trying to do:
If String.Compare(string1, string2, True, CultureInfo.InvariantCulture)
= 0 Then
For details on compare strings see:
http://msdn.microsoft.com/library/de...ficculture.asp
http://msdn.microsoft.com/library/de...operations.asp
Interesting enough this page talks about your "bug"!
http://msdn.microsoft.com/library/de...rtingrules.asp
http://msdn.microsoft.com/library/de...operations.asp
Plus any sub topics of the above...
Hope this helps
Jay
"Atara" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Thank you all.
>
> Our program failed in Turkey because we used code that relied on the
> 'fault' assumption that "i".ToUpper = "I"
>
> * The only way we could specify the problem was by installing Turkish
> OS.
> * I fixed the bug by creating the upperCase string using -
> Dim deltaAscii As Integer = 97-65 ' Asc("a")=97, Asc("A")=65
> For Each strChar In myStr
> intAsc = AscW(strChar)
> If (intAsc >= AscW("a")) And (intAsc <= AscW("z")) Then
> strUpper = strUpper & Chr(intAsc - deltaAscii)
>
> I am looking for a site that will include information about
> specification of languages that might cause other bugs.
>
> Are you aware of such a site?
>
> Thanks
> Atara.
>
>
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it!