]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
:-) (CVS 202)
authordrh <drh@noemail.net>
Thu, 5 Apr 2001 16:25:53 +0000 (16:25 +0000)
committerdrh <drh@noemail.net>
Thu, 5 Apr 2001 16:25:53 +0000 (16:25 +0000)
FossilOrigin-Name: 04530e451662e298506d314ce014a2643f4ff813

manifest
manifest.uuid
www/c_interface.tcl
www/changes.tcl

index 63d24a6a70ffadf14f565b3a7cdf41585f993fed..429e1bbe3b5424f1650430ebfacae1f013f1f71e 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C i18n\schanges\s(CVS\s201)
-D 2001-04-05T15:57:13
+C :-)\s(CVS\s202)
+D 2001-04-05T16:25:53
 F COPYRIGHT 74a8a6531a42e124df07ab5599aad63870fa0bd4
 F Makefile.in 25791375ce9f4f5b57d4cab67f0d58d772c96451
 F README 51f6a4e7408b34afa5bc1c0485f61b6a4efb6958
@@ -82,8 +82,8 @@ F tool/report1.txt 9eae07f26a8fc53889b45fc833a66a33daa22816
 F www/arch.fig 4f246003b7da23bd63b8b0af0618afb4ee3055c8
 F www/arch.png 8dae0766d42ed3de9ed013c1341a5792bcf633e6
 F www/arch.tcl a40380c1fe0080c43e6cc5c20ed70731511b06be
-F www/c_interface.tcl 11be2d5826eb7d6efd629751d3b483c1ed78ba14
-F www/changes.tcl c6c8aa0fdd02d4dbc17803aa023279e0d3809ba5
+F www/c_interface.tcl ddca19005c47dd5a15882addc02fff5de83d8ed9
+F www/changes.tcl e9379e995e19486b352c82d54e87041153739fca
 F www/crosscompile.tcl c99efacb3aefaa550c6e80d91b240f55eb9fd33e
 F www/dynload.tcl 02eb8273aa78cfa9070dd4501dca937fb22b466c
 F www/fileformat.tcl cfb7fba80b7275555281ba2f256c00734bcdd1c9
@@ -94,7 +94,7 @@ F www/opcode.tcl cb3a1abf8b7b9be9f3a228d097d6bf8b742c2b6f
 F www/sqlite.tcl cb0d23d8f061a80543928755ec7775da6e4f362f
 F www/tclsqlite.tcl 06f81c401f79a04f2c5ebfb97e7c176225c0aef2
 F www/vdbe.tcl 0c8aaa529dd216ccbf7daaabd80985e413d5f9ad
-P 8b4c87e8cf08db8e8ace57dc8dc8d110d18f19ed
-R 80c18504638b99b08ae21db4afad8915
+P 8390f6521af0f1c5cd0298cc4a1dfa3f092c1e15
+R d248ed8781ae0c5dba14ccb218b35cd1
 U drh
-Z 27516acdd74264a621463b7fd9bffc1d
+Z 67d07e427c448f5bf8d4cc1c19e29397
index 8f38c635d9399e2b609207aadb863aeb9566205c..9f3d377381d6d80e8f0027e99343f71d5121db0e 100644 (file)
@@ -1 +1 @@
-8390f6521af0f1c5cd0298cc4a1dfa3f092c1e15
\ No newline at end of file
+04530e451662e298506d314ce014a2643f4ff813
\ No newline at end of file
index 6236e7dbf6af4e3ce3f0e4db7c64739368d2291b..19b4dd10db71e12123d9668437e7074b21b5d630 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Run this Tcl script to generate the sqlite.html file.
 #
-set rcsid {$Id: c_interface.tcl,v 1.13 2000/11/28 20:46:39 drh Exp $}
+set rcsid {$Id: c_interface.tcl,v 1.14 2001/04/05 16:25:53 drh Exp $}
 
 puts {<html>
 <head>
@@ -78,6 +78,8 @@ void sqlite_busy_timeout(sqlite*, int ms);
 
 const char sqlite_version[];
 
+const char sqlite_encoding[];
+
 int sqlite_exec_printf(
   sqlite*,
   char *sql,
@@ -377,6 +379,23 @@ the SQLITE_VERSION macro against the <b>sqlite_version</b>
 string constant to verify that the version number of the
 header file and the library match.</p> 
 
+<h2>Library character encoding</h2>
+
+<p>By default, SQLite assumes that all data uses a fixed-size
+8-bit character (iso8859).  But if you give the --enable-utf8 option
+to the configure script, then the library assumes UTF-8 variable
+sized characters.  This makes a difference for the LIKE and GLOB
+operators and the LENGTH() and SUBSTR() functions.  The static
+string <b>sqlite_encoding</b> will be set to either "UTF-8" or
+"iso8859" to indicate how the library was compiled.  In addition,
+the <b>sqlite.h</b> header file will define one of the
+macros <b>SQLITE_UTF8</b> or <b>SQLITE_ISO8859</b>, as appropriate.</p>
+
+<p>Note that the character encoding mechanism used by SQLite cannot
+be changed at run-time.  This is a compile-time option only.  The
+<b>sqlite_encoding</b> character string just tells you how the library
+was compiled.</p>
+
 <h2>Changing the libraries response to locked files</h2>
 
 <p>The GDBM library supports database locks at the file level.
index 5927ce52e61a6a6966383476748b9fac061a413d..cdb281b43780340d63dcb336c828ca04215c5fa4 100644 (file)
@@ -18,10 +18,13 @@ proc chng {date desc} {
 }
 
 chng {2001 Apr 5 (1.0.29)} {
-<li>The LIKE and GLOB operators now assume both operands are
-    UTF-8 strings if the library is configured with the "--enable-utf8"
-    option.  If not configured for UTF-8 but using a version of TCL
-    that supports UTF-8, then a conversion from UTF-8 to iso8859 and
+<li>The library now assumes data is stored as UTF-8 if the --enable-utf8
+    option is given to configure.  The default behavior is to assume
+    iso8859-x, as it has always done.  This only makes a difference for
+    LIKE and GLOB operators and the LENGTH and SUBSTR functions.</li>
+<li>If the library is not configured for UTF-8 and the Tcl library
+    is one of the newer ones that uses UTF-8 internally,
+    then a conversion from UTF-8 to iso8859 and
     back again is done inside the TCL interface.</li>
 }