Cast from and to CChar

Christian Buschmann Christian.Buschmann at
Mon Oct 27 20:47:41 EST 2003

I've got following problem. If I enter in ghci following line:
   Prelude Foreign.C> castCCharToChar $ castCharToCChar 'ü'
I would expect that this returns 'ü', but it returns '\252'. Is this the 
correct behaviour? Or am I doing something wrong? Or are there any 
problems with language specific characters and CChar?

   Christian B.

More information about the Haskell-Cafe mailing list