Ketil Malde <[EMAIL PROTECTED]> writes:
>> The Haskell functions accept or return Strings but interface to OS
>> functions which (at least on Unix) deal with arrays of bytes (char*),
>> and the encoding issues are essentially ignored. If you pass strings
>> containing anything other than ISO-8859-
Glynn Clements <[EMAIL PROTECTED]> writes:
> The Haskell functions accept or return Strings but interface to OS
> functions which (at least on Unix) deal with arrays of bytes (char*),
> and the encoding issues are essentially ignored. If you pass strings
> containing anything other than ISO-8859-1
Ben Rudiak-Gould wrote:
> >Char in Haskell represents a Unicode character. I don't know exactly
> >what its size is, but it must be at least 16 bits and maybe more.
> >String would then share those properties.
> >
> >However, usually I'm accustomed to dealing with data in 8-bit words.
> >S
John Goerzen wrote:
> > > * If I use hPutStr on a string, is it guaranteed that the number of
> > > 8-bit bytes written equals (length stringWritten)?
> >
> > Yes, if the handle is opened in binary mode. No if not.
>
> Thank you for the informative response.
>
> If a file is opened in text m
On Sun, Jan 30, 2005 at 07:58:50PM -0600, John Goerzen wrote:
> On Sun, Jan 30, 2005 at 07:39:59PM +, Ben Rudiak-Gould wrote:
> > > * If I use hPutStr on a string, is it guaranteed that the number of
> > > 8-bit bytes written equals (length stringWritten)?
> >
> > Yes, if the handle is opene
On Sun, Jan 30, 2005 at 07:58:50PM -0600, John Goerzen wrote:
> On Sun, Jan 30, 2005 at 07:39:59PM +, Ben Rudiak-Gould wrote:
> > > * If I use hPutStr on a string, is it guaranteed that the number of
> > > 8-bit bytes written equals (length stringWritten)?
> >
> > Yes, if the handle is opene
On Sun, Jan 30, 2005 at 07:39:59PM +, Ben Rudiak-Gould wrote:
> > * If I use hPutStr on a string, is it guaranteed that the number of
> > 8-bit bytes written equals (length stringWritten)?
>
> Yes, if the handle is opened in binary mode. No if not.
Thank you for the informative response.
I
John Goerzen wrote:
>Char in Haskell represents a Unicode character. I don't know exactly
>what its size is, but it must be at least 16 bits and maybe more.
>String would then share those properties.
>
>However, usually I'm accustomed to dealing with data in 8-bit words.
>So I have some questions: