That was it. I didn't know that the wchar_t has different bit sizes on Linux and Windows. Thank you very much.
Jay A. Kreibich-2 wrote: > >> I know that the SQL syntax is correct and it is possible to execute that >> source under windows. >> I don't understand why it doesn't work with Linux. >> Does somebody has an idea what's going wrong? > > Wide characters are 32 bits on most non-Windows platforms. When > passed to a 16 bit system, the first character of L"CREATE..." is > seen as ['C', '\0']. > > http://en.wikipedia.org/wiki/C_syntax#Wide_character_strings > > This is part of the reason SQLite3 uses void* rather than wchar_t* > for UTF-16 strings. > -- View this message in context: http://old.nabble.com/UTF16---sqlite3_prepare16_v2-tp28643020p28644005.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users