The utf8ToUnicode function uses MultiByteToWideChar(CP_UTF8) which it
seems from recent comments isn't supported on all versions of Windows
CE. This may need to be changed to use the internal UTF-8 to UTF-16
conversion routines.

To be safe, the unicodeToMbcs needs to determine which codepage to
convert to in the WideCharToMultiByte calls. This is done by calling the
AreFileApisANSI() http://snipurl.com/arefileapisansi like:
UINT codepage = AreFileApisANSI() ? CP_ACP : CP_OEM;

Note also that many comments are wrong throughout the file. All WCHAR in
Windows is UTF-16 not UTF-32 which is stated everywhere.

You need casts for the void* to either char* or WCHAR* in the
LoadLibraryA/W calls.

Regards,
Brodie


[EMAIL PROTECTED] wrote:
> win95/nt/ce users, please test check-in [3541] to see if extension
> loading now works on wince and to make sure that nothing broke on
> win95/nt.  Tnx.
> 
> http://www.sqlite.org/cvstrac/chngview?cn=3541
> 
> --
> D. Richard Hipp  <[EMAIL PROTECTED]>
> 
> 
> -----------------------------------------------------------------------------
> To unsubscribe, send email to [EMAIL PROTECTED]
> -----------------------------------------------------------------------------
> 
> 

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to