Don't mention g_utf32_to_utf8() and g_utf8_to_utf32()
authorJavier Jardón <jjardon@gnome.org>
Sun, 15 Nov 2009 04:51:45 +0000 (05:51 +0100)
committerJavier Jardón <jjardon@gnome.org>
Sun, 15 Nov 2009 23:09:16 +0000 (00:09 +0100)
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

index 02c11b2..e0596c1 100644 (file)
@@ -46,8 +46,8 @@ A type which can hold any UTF-32 or UCS-4 character code, also known
 as a Unicode code point.
 </para>
 <para>
-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.
 </para>
 <para>
 To print/scan values of this type as integer, use