H98 FFI Addendum 1.0, Release Candidate 15

Manuel M T Chakravarty chak at cse.unsw.edu.au
Mon Nov 17 04:10:40 EST 2003


"Simon Marlow" <simonmar at microsoft.com> wrote,

> It is true that strictly speaking we don't need to say anything here.
> But I think it would be helpful to include a footnote as a guide to
> implementors, something along the lines of
> 
>    [1] Note that if the platform defines __STDC_ISO_10646__ then wchar_t
>    characters are Unicode code points, and thus the conversion between
>    Haskell Char and CWChar is a simple cast.  On other platforms, the
>    translation is locale-dependent just as for CChar.
> 
> And the paragraph in question could be just
> 
>   The module \code{CString} also exports a
>   variant of the above string marshalling routines for wide
>   characters, i.e. the C \code{wchar_t} type[1].

Ok.  That's what's going to be in RC16.

Cheers,
Manuel


More information about the FFI mailing list