aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-06-18 04:24:54 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-06-18 04:24:54 +0000
commitbfd6cce56bbb02a96fd7599ff89e1e807fa2df29 (patch)
treee0d7c19ec2260b540dc806932b07a75dec67f2d9 /src/vdbeapi.c
parenta2854229224e9e13eab1a9e9031057e6a259c38c (diff)
downloadsqlite-bfd6cce56bbb02a96fd7599ff89e1e807fa2df29.tar.gz
sqlite-bfd6cce56bbb02a96fd7599ff89e1e807fa2df29.zip
Optimisation for unicode encoding conversion routines. (CVS 1614)
FossilOrigin-Name: 39a415eaa65964742e40b7ea4d471fa04007c6c9
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index dff0a10ad..fde3b1cd2 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -518,20 +518,7 @@ int sqlite3_bind_text16(
}
pVar = &p->apVar[i-1];
- /* There may or may not be a byte order mark at the start of the UTF-16.
- ** Either way set 'txt_enc' to the SQLITE_UTF16* value indicating the
- ** actual byte order used by this string. If the string does happen
- ** to contain a BOM, then move zData so that it points to the first
- ** byte after the BOM.
- */
- txt_enc = sqlite3UtfReadBom(zData, nData);
- if( txt_enc ){
- zData = (void *)(((u8 *)zData) + 2);
- nData -= 2;
- }else{
- txt_enc = SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE;
- }
- rc = sqlite3VdbeMemSetStr(pVar, zData, nData, txt_enc, xDel);
+ rc = sqlite3VdbeMemSetStr(pVar, zData, nData, SQLITE_UTF16NATIVE, xDel);
if( rc ){
return rc;
}