From: Javier Jardón Date: Sun, 15 Nov 2009 04:51:45 +0000 (+0100) Subject: Don't mention g_utf32_to_utf8() and g_utf8_to_utf32() X-Git-Tag: 2.23.0~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18b3ff33afad10dfac7dfdf3025313490f8313cc;p=platform%2Fupstream%2Fglib.git Don't mention g_utf32_to_utf8() and g_utf8_to_utf32() These functions doesn't exist. Suggest to use g_ucs4_to_utf8/g_utf8_to_ucs4 to produce the UTF-8 representation of a gunichar This fix bug: https://bugzilla.gnome.org/show_bug.cgi?id=601874 --- diff --git a/docs/reference/glib/tmpl/unicode.sgml b/docs/reference/glib/tmpl/unicode.sgml index 02c11b2..e0596c1 100644 --- a/docs/reference/glib/tmpl/unicode.sgml +++ b/docs/reference/glib/tmpl/unicode.sgml @@ -46,8 +46,8 @@ A type which can hold any UTF-32 or UCS-4 character code, also known as a Unicode code point. -To print/scan values of this type to/from text you need to convert -to/from UTF-8, using g_utf32_to_utf8()/g_utf8_to_utf32(). +If you want to produce the UTF-8 representation of a #gunichar, +use g_ucs4_to_utf8(). See also g_utf8_to_ucs4() for the reverse process. To print/scan values of this type as integer, use