[mercury-users] Re: [mercury-users] io__read_line_as_string predicate problem

Petr Nemec xanthar at seznam.cz
Tue Mar 25 04:40:23 AEDT 2003


> > Hallo everybody,
> >  I have a problem with the io__read_line_as_string predicate when
> > reading a text file containing non ASCII characters. I am unable to
> > read such line with this predicate, whereas io__read_line and
> > consequential conversion via string__from_char_list works fine. Is
> > there a way to avoid "touching" each character twice ? Time is my
> > greatest enemy :).
> > 
> > Thanks
> >  Petr
> > Nemec

> That said, I don't really understand why using string__from_char_list
> after io__read_line should work if io__read_line_as_string doesn't.
> What exactly goes wrong?

It is exactly so. The call to io__read_line_as_string ends up with 
"error(io_error("read failed: error 0"))". 
The charset is non-ASCII (ISO-8859-2, Czech letters). I am using
binary distribution of Mercury 10.1. on CygWin.

Petr

______________________________________________________________________
Reklama:
Vyzkousej zabavny test Travelmatch od KLM. Naleznes tak dovolenou svych 
snu a usetrĂ­s 30%! Hraj zde: http://ad2.seznam.cz/redir.cgi?instance=45492%26url=http://klm.mhc.hu/travelmatch/cz/tm_lp_cz_cz.htm
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list