changeset 1130:cdcb6c1fb148

comment
author corvid <corvid@lavabit.com>
date Mon, 25 May 2009 23:37:12 +0000
parents 205e83fe66c0
children 276e290accca
files src/utf8.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/utf8.cc	Mon May 25 18:58:49 2009 +0200
+++ b/src/utf8.cc	Mon May 25 23:37:12 2009 +0000
@@ -38,7 +38,9 @@
 /*
  * Decode a single UTF-8-encoded character starting at p.
  * The resulting Unicode value (in the range 0-0x10ffff) is returned,
- * and len is set the the number of bytes in the UTF-8 encoding.
+ * and len is set to the number of bytes in the UTF-8 encoding.
+ * Note that utf8decode(), if given non-UTF-8 data, will interpret
+ * it as ISO-8859-1 or CP1252 if possible.
  */
 uint_t a_Utf8_decode(const char* str, const char* end, int* len)
 {