mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Add a note explaining how to convert UTF-16 byte stream of ambiguous
Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de> * glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to convert UTF-16 byte stream of ambiguous endianness. (#152954, Linus Walleij)
This commit is contained in:
parent
6aad158c67
commit
a4026b4cbf
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
|
||||||
|
convert UTF-16 byte stream of ambiguous endianness. (#152954,
|
||||||
|
Linus Walleij)
|
||||||
|
|
||||||
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/option-test.c (error_test3_post_parse):
|
* tests/option-test.c (error_test3_post_parse):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
|
||||||
|
convert UTF-16 byte stream of ambiguous endianness. (#152954,
|
||||||
|
Linus Walleij)
|
||||||
|
|
||||||
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/option-test.c (error_test3_post_parse):
|
* tests/option-test.c (error_test3_post_parse):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
|
||||||
|
convert UTF-16 byte stream of ambiguous endianness. (#152954,
|
||||||
|
Linus Walleij)
|
||||||
|
|
||||||
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/option-test.c (error_test3_post_parse):
|
* tests/option-test.c (error_test3_post_parse):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
|
||||||
|
convert UTF-16 byte stream of ambiguous endianness. (#152954,
|
||||||
|
Linus Walleij)
|
||||||
|
|
||||||
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/option-test.c (error_test3_post_parse):
|
* tests/option-test.c (error_test3_post_parse):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
|
||||||
|
convert UTF-16 byte stream of ambiguous endianness. (#152954,
|
||||||
|
Linus Walleij)
|
||||||
|
|
||||||
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* tests/option-test.c (error_test3_post_parse):
|
* tests/option-test.c (error_test3_post_parse):
|
||||||
|
@ -1031,6 +1031,11 @@ g_ucs4_to_utf8 (const gunichar *str,
|
|||||||
* Convert a string from UTF-16 to UTF-8. The result will be
|
* Convert a string from UTF-16 to UTF-8. The result will be
|
||||||
* terminated with a 0 byte.
|
* terminated with a 0 byte.
|
||||||
*
|
*
|
||||||
|
* Note that the input is expected to be already in native endianness,
|
||||||
|
* an initial byte-order-mark character is not handled specially.
|
||||||
|
* g_convert() can be used to convert a byte buffer of UTF-16 data of
|
||||||
|
* ambiguous endianess.
|
||||||
|
*
|
||||||
* Return value: a pointer to a newly allocated UTF-8 string.
|
* Return value: a pointer to a newly allocated UTF-8 string.
|
||||||
* This value must be freed with g_free(). If an
|
* This value must be freed with g_free(). If an
|
||||||
* error occurs, %NULL will be returned and
|
* error occurs, %NULL will be returned and
|
||||||
|
Loading…
Reference in New Issue
Block a user