Hello folks

I'm having some troubles with german umlauts (ä, ü, ö, ß) in mono-0.31. I 
haven't had these issues in mono-0.26, so I don't think that this is a bug, 
but a configuration problem.
I made some sample code:

------------------------------------------------------------------------
using System;

class Test
{
        public static void Main()
        {
                string test = "a";
                string uml  = "ä";

                //String.IndexOf(string)
                if(test.IndexOf(uml) >= 0)      
                                Console.WriteLine("contains umlaut 1");

                //String.IndexOf(char)
                if(test.IndexOf(uml.ToCharArray()[0]) >= 0)
                                Console.WriteLine("contains umlaut 2");

                //String.Replace(string,string)
                Console.WriteLine(test.Replace(uml, "umlaut"));

                //String.Replace(char,char)
                Console.WriteLine(test.Replace(uml.ToCharArray()[0], 'e'));
        }
}
--------------------------------------------------------------------------
the output is:
------------------
$ ./test.exe
contains umlaut 1
umlaut
a
------------------

Of course the IndexOf() Methods should always return -1 and the Replace() 
Methods should replace nothing.
As you can see, on my computer IndexOf(char) and Replace(char,char) work, but 
they  don't work with the string overloads.
As I said I used 0.26 for a long time and there it worked

I compiled from source (official release) with ICU 2.8

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to