mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Use C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead
2003-06-25 Abigail Brady <morwen@evilmagic.org> * glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead of perl-style \X{xxxx} ones, fixing bug #114284.
This commit is contained in:
parent
98ba2b5ee3
commit
5c903d283b
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-25 Abigail Brady <morwen@evilmagic.org>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
|
||||||
|
and \Uxxxxyyyy escapes instead for fallback instead of perl-style
|
||||||
|
\X{xxxx} ones, fixing bug #114284.
|
||||||
|
|
||||||
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-25 Abigail Brady <morwen@evilmagic.org>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
|
||||||
|
and \Uxxxxyyyy escapes instead for fallback instead of perl-style
|
||||||
|
\X{xxxx} ones, fixing bug #114284.
|
||||||
|
|
||||||
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-25 Abigail Brady <morwen@evilmagic.org>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
|
||||||
|
and \Uxxxxyyyy escapes instead for fallback instead of perl-style
|
||||||
|
\X{xxxx} ones, fixing bug #114284.
|
||||||
|
|
||||||
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-25 Abigail Brady <morwen@evilmagic.org>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
|
||||||
|
and \Uxxxxyyyy escapes instead for fallback instead of perl-style
|
||||||
|
\X{xxxx} ones, fixing bug #114284.
|
||||||
|
|
||||||
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-25 Abigail Brady <morwen@evilmagic.org>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
|
||||||
|
and \Uxxxxyyyy escapes instead for fallback instead of perl-style
|
||||||
|
\X{xxxx} ones, fixing bug #114284.
|
||||||
|
|
||||||
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-25 Abigail Brady <morwen@evilmagic.org>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
|
||||||
|
and \Uxxxxyyyy escapes instead for fallback instead of perl-style
|
||||||
|
\X{xxxx} ones, fixing bug #114284.
|
||||||
|
|
||||||
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
2003-06-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
|
||||||
|
@ -652,7 +652,7 @@ g_convert_with_iconv (const gchar *str,
|
|||||||
* present in the target encoding. (This must be
|
* present in the target encoding. (This must be
|
||||||
* in the target encoding), if %NULL, characters
|
* in the target encoding), if %NULL, characters
|
||||||
* not in the target encoding will be represented
|
* not in the target encoding will be represented
|
||||||
* as Unicode escapes \x{XXXX} or \x{XXXXXX}.
|
* as Unicode escapes \uxxxx or \Uxxxxyyyy.
|
||||||
* @bytes_read: location to store the number of bytes in the
|
* @bytes_read: location to store the number of bytes in the
|
||||||
* input string that were successfully converted, or %NULL.
|
* input string that were successfully converted, or %NULL.
|
||||||
* Even if the conversion was successful, this may be
|
* Even if the conversion was successful, this may be
|
||||||
@ -807,8 +807,7 @@ g_convert_with_fallback (const gchar *str,
|
|||||||
if (!fallback)
|
if (!fallback)
|
||||||
{
|
{
|
||||||
gunichar ch = g_utf8_get_char (p);
|
gunichar ch = g_utf8_get_char (p);
|
||||||
insert_str = g_strdup_printf ("\\x{%0*X}",
|
insert_str = g_strdup_printf (ch < 0x10000 ? "\\u%04x" : "\\U%08x",
|
||||||
(ch < 0x10000) ? 4 : 6,
|
|
||||||
ch);
|
ch);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user