+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
+2001-05-14 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_utf8_get_char): fix docs; they said we validated
+ the UTF-8, but we can't possibly detect partial chars since
+ there's no length arg here, so trying to use this function
+ on invalid UTF-8 is a bad idea.
+
Thu May 10 23:21:30 2001 Owen Taylor <otaylor@redhat.com>
* gmessages.c (g_log_write_prefix): Avoid using stderr
* @p: a pointer to unicode character encoded as UTF-8
*
* Convert a sequence of bytes encoded as UTF-8 to a unicode character.
+ * If @p does not point to a valid UTF-8 encoded character, results are
+ * undefined.
*
- * Return value: the resulting character or (gunichar)-1 if @p does
- * not point to a valid UTF-8 encoded unicode character
+ * Return value: the resulting character
**/
gunichar
g_utf8_get_char (const gchar *p)
/**
* g_utf8_strchr:
* @p: a nul-terminated utf-8 string
- * @c: a iso-10646 character/
+ * @c: a iso-10646 character
*
* Find the leftmost occurence of the given iso-10646 character
* in a UTF-8 string.
* Validates UTF-8 encoded text. @str is the text to validate;
* if @str is nul-terminated, then @max_len can be -1, otherwise
* @max_len should be the number of bytes to validate.
- * If @end is non-NULL, then the end of the valid range
+ * If @end is non-%NULL, then the end of the valid range
* will be stored there (i.e. the address of the first invalid byte
* if some bytes were invalid, or the end of the text being validated
* otherwise).
* @p: a pointer to unicode character encoded as UTF-8
*
* Convert a sequence of bytes encoded as UTF-8 to a unicode character.
+ * If @p does not point to a valid UTF-8 encoded character, results are
+ * undefined.
*
- * Return value: the resulting character or (gunichar)-1 if @p does
- * not point to a valid UTF-8 encoded unicode character
+ * Return value: the resulting character
**/
gunichar
g_utf8_get_char (const gchar *p)
/**
* g_utf8_strchr:
* @p: a nul-terminated utf-8 string
- * @c: a iso-10646 character/
+ * @c: a iso-10646 character
*
* Find the leftmost occurence of the given iso-10646 character
* in a UTF-8 string.
* Validates UTF-8 encoded text. @str is the text to validate;
* if @str is nul-terminated, then @max_len can be -1, otherwise
* @max_len should be the number of bytes to validate.
- * If @end is non-NULL, then the end of the valid range
+ * If @end is non-%NULL, then the end of the valid range
* will be stored there (i.e. the address of the first invalid byte
* if some bytes were invalid, or the end of the text being validated
* otherwise).