Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Expose the UTF8 to MBCS conversion routine in os_win.c to external applications. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7b479b9bee93df909edecd44c7d6584d |
User & Date: | drh 2011-04-27 16:05:42 |
Context
2011-04-27
| ||
18:08 | Change the name of an internal function to avoid conflicts with the math library. (check-in: 1bd1484c user: drh tags: trunk) | |
16:05 | Expose the UTF8 to MBCS conversion routine in os_win.c to external applications. (check-in: 7b479b9b user: drh tags: trunk) | |
01:00 | Fix a comment typo. (check-in: 19c6625a user: drh tags: trunk) | |
Changes
Changes to src/os_win.c.
︙ | ︙ | |||
282 283 284 285 286 287 288 | return zFilenameUtf8; } /* ** Convert UTF-8 to multibyte character string. Space to hold the ** returned string is obtained from malloc(). */ | | | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | return zFilenameUtf8; } /* ** Convert UTF-8 to multibyte character string. Space to hold the ** returned string is obtained from malloc(). */ char *sqlite3_win32_utf8_to_mbcs(const char *zFilename){ char *zFilenameMbcs; WCHAR *zTmpWide; zTmpWide = utf8ToUnicode(zFilename); if( zTmpWide==0 ){ return 0; } |
︙ | ︙ | |||
2000 2001 2002 2003 2004 2005 2006 | void *zConverted = 0; if( isNT() ){ zConverted = utf8ToUnicode(zFilename); /* isNT() is 1 if SQLITE_OS_WINCE==1, so this else is never executed. */ #if SQLITE_OS_WINCE==0 }else{ | | | 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 | void *zConverted = 0; if( isNT() ){ zConverted = utf8ToUnicode(zFilename); /* isNT() is 1 if SQLITE_OS_WINCE==1, so this else is never executed. */ #if SQLITE_OS_WINCE==0 }else{ zConverted = sqlite3_win32_utf8_to_mbcs(zFilename); #endif } /* caller will handle out of memory */ return zConverted; } /* |
︙ | ︙ |