From 18b3ff33afad10dfac7dfdf3025313490f8313cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Sun, 15 Nov 2009 05:51:45 +0100 Subject: [PATCH] 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 --- docs/reference/glib/tmpl/unicode.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.7.4