[glib] gconvert: mention that the g_convert len should be in bytes
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gconvert: mention that the g_convert len should be in bytes
- Date: Fri, 30 May 2014 11:51:35 +0000 (UTC)
commit 79f930f6dc23c05fef7fdcaaeed0df230698453e
Author: Thiago Santos <ts santos sisa samsung com>
Date: Thu May 29 19:13:37 2014 -0300
gconvert: mention that the g_convert len should be in bytes
Some charsets have each char with more than one byte, make it clear that
the length should be in bytes
https://bugzilla.gnome.org/show_bug.cgi?id=730963
glib/gconvert.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/gconvert.c b/glib/gconvert.c
index 2be1cbb..1d55fda 100644
--- a/glib/gconvert.c
+++ b/glib/gconvert.c
@@ -342,7 +342,7 @@ close_converter (GIConv cd)
/**
* g_convert_with_iconv:
* @str: the string to convert
- * @len: the length of the string, or -1 if the string is
+ * @len: the length of the string in bytes, or -1 if the string is
* nul-terminated (Note that some encodings may allow nul
* bytes to occur inside strings. In that case, using -1
* for the @len parameter is unsafe)
@@ -495,7 +495,7 @@ g_convert_with_iconv (const gchar *str,
/**
* g_convert:
* @str: the string to convert
- * @len: the length of the string, or -1 if the string is
+ * @len: the length of the string in bytes, or -1 if the string is
* nul-terminated (Note that some encodings may allow nul
* bytes to occur inside strings. In that case, using -1
* for the @len parameter is unsafe)
@@ -574,7 +574,7 @@ g_convert (const gchar *str,
/**
* g_convert_with_fallback:
* @str: the string to convert
- * @len: the length of the string, or -1 if the string is
+ * @len: the length of the string in bytes, or -1 if the string is
* nul-terminated (Note that some encodings may allow nul
* bytes to occur inside strings. In that case, using -1
* for the @len parameter is unsafe)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]