cvs commit: fptools/libraries/base/Foreign/C String.hs
Ross Paterson
ross at soi.city.ac.uk
Tue Jun 22 09:11:07 EDT 2004
On Tue, Jun 22, 2004 at 02:01:42PM +0100, Simon Marlow wrote:
> On 22 June 2004 13:46, Ross Paterson wrote:
>
> > ross 2004/06/22 05:45:55 PDT
> >
> > Modified files:
> > libraries/base/Foreign/C String.hs
> > Log:
> > Change the interface (but not the implementation) to match the FFI
> > spec:
> >
> > * added charIsRepresentable, *CAString and *CWString
> >
> > * currently (and in violation of the spec), fooCString = fooCAString
> >
> > * The WString versions use UTF-16 under Windows and UTF-32 elsewhere
> > (valid only if the compiler defines __STDC_ISO_10646__).
> >
> > Revision Changes Path
> > 1.14 +289 -60 fptools/libraries/base/Foreign/C/String.hs
>
> Thanks Ross, I can cross that off my ToDo list now :-)
There's still the byte encoding part to keep on your list. But you may
wish to switch things that care more about performance than Unicode from
*CString to *CAString first. Also the byte encodings seem to need
hsc2hs -- do you want to keep that out of Foreign.C.String?
More information about the Cvs-libraries
mailing list