UTF-8 library
anatoli
anatoli@yahoo.com
Thu, 8 Aug 2002 09:59:12 -0700 (PDT)
--- Axel Simon <A.Simon@ukc.ac.uk> wrote:
> I am only talking about the default behaviour of readFile which should be
> locale dependant IMHO.
This makes sense.
> If you know you are reading a Latin-9 or stream you
> will probably say something like
> do
> content <- liftM octetToLatin9 $ readOctetFile "foo"
I'd still rather associate locale with a handle. This way, all
Char and String IO functions that exist, and those that are not
written yet, can work with any encoding without relying on the
abomination that is setlocale(). We do have quite a few of them
besides readFile, and making "octet" versions of all of them is
Not A Good Thing.
--
a.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com