s3:lib/charcnv: clarify comments in next_codepoint_ext()
authorMichael Adam <obnox@samba.org>
Fri, 29 Oct 2010 20:11:30 +0000 (22:11 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 3 Nov 2010 22:45:19 +0000 (22:45 +0000)
(giving the unicod U+<hexnumber> notation of the codepoints
 referred to in the comments)

source3/lib/charcnv.c

index 57e0f3a789d410563725bbffc0ab042af4173bc0..3b6dfc5099a1147394d006b72842a8ef386522b4 100644 (file)
@@ -1827,7 +1827,7 @@ codepoint_t next_codepoint_ext(const char *str, charset_t src_charset,
 
        /*
         * We assume that no multi-byte character can take more than
-        * 5 bytes. This is OK as we only support codepoints up to 1M
+        * 5 bytes. This is OK as we only support codepoints up to 1M (U+100000)
         */
 
        ilen_orig = strnlen(str, 5);
@@ -1843,7 +1843,7 @@ codepoint_t next_codepoint_ext(const char *str, charset_t src_charset,
 
        /*
         * This looks a little strange, but it is needed to cope
-        * with codepoints above 64k which are encoded as per RFC2781.
+        * with codepoints above 64k (U+10000) which are encoded as per RFC2781.
         */
        olen = 2;
        outbuf = (char *)buf;