From 8e3788a14ad01aa595e9f29200bcee6771c36dfd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 26 Oct 2005 13:22:36 +0000 Subject: [PATCH] Add a footnote about surrogate pairs. (#317683, Behdad Esfahbod) 2005-10-26 Matthias Clasen * glib/tmpl/unicode.sgml: Add a footnote about surrogate pairs. (#317683, Behdad Esfahbod) --- docs/reference/ChangeLog | 5 +++++ docs/reference/glib/tmpl/unicode.sgml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index a0573853..7b911784 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2005-10-26 Matthias Clasen + + * glib/tmpl/unicode.sgml: Add a footnote about surrogate + pairs. (#317683, Behdad Esfahbod) + 2005-10-05 Matthias Clasen * glib/compiling.sgml: Document gmodule-no-export-2.0 diff --git a/docs/reference/glib/tmpl/unicode.sgml b/docs/reference/glib/tmpl/unicode.sgml index 0ce4aed9..466299dc 100644 --- a/docs/reference/glib/tmpl/unicode.sgml +++ b/docs/reference/glib/tmpl/unicode.sgml @@ -40,7 +40,12 @@ A type which can hold any UCS-4 character code. -A type which can hold any UTF-16 character code. +A type which can hold any UTF-16 code +pointUTF-16 also has so called +surrogate pairs to encode characters beyond the +BMP as pairs of 16bit numbers. Surrogate pairs cannot be stored in a +single gunichar2 field, but all GLib functions accepting gunichar2 arrays +will correctly interpret surrogate pairs.. -- 2.34.1