On Wed, 03 Nov 2004 14:58:51 +0000, MJ Ray mjr@dsl.pipex.com wrote:
The SQLite database seems to use UTF-16 as a basic datatype. I was having a browse after it was suggested that I try writing a Scheme interface to it. When reading http://www.sqlite.org/capi3.html, the following caught my eye: "There is no agreement on what the C datatype for a UTF-16 string should be."
Is there really such disagreement on this basic datatype? The FAQ makes it look clearcut on wchar_t. What types do C programmers really use?
Visual Studio 6 favours wchar_t with a comment to the effect of "use unsigned short on Macintosh compilers".
I'll go wash my mouth out now ;-)
Tim.