8 Aug
2002
8 Aug
'02
4:34 p.m.
On Thu, Aug 08, 2002 at 09:26:02AM -0700, anatoli wrote:
--- Axel Simon <A.Simon@ukc.ac.uk> wrote:
Sure it is necessary to explicitly state what kind of conversion you want when you talk to your C library. So IMHO the only question that really remains is whether readFile, withCString and all other standard I/O function should assume UTF-8 by default or the current locale. I opt for the latter.
Dependence on the current locale is EXTREMELY inconvenient. I am only talking about the default behaviour of readFile which should be locale dependant IMHO. If you know you are reading a Latin-9 or stream you will probably say something like do content <- liftM octetToLatin9 $ readOctetFile "foo"
Axel.