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:
Abigail Brady 2003-06-25 18:03:38 +00:00 committed by Abigail Brady
parent 98ba2b5ee3
commit 5c903d283b
7 changed files with 38 additions and 3 deletions

View File

@ -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>
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and

View File

@ -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>
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and

View File

@ -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>
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and

View File

@ -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>
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and

View File

@ -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>
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and

View File

@ -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>
* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and

View File

@ -652,7 +652,7 @@ g_convert_with_iconv (const gchar *str,
* present in the target encoding. (This must be
* in the target encoding), if %NULL, characters
* 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
* input string that were successfully converted, or %NULL.
* Even if the conversion was successful, this may be
@ -807,8 +807,7 @@ g_convert_with_fallback (const gchar *str,
if (!fallback)
{
gunichar ch = g_utf8_get_char (p);
insert_str = g_strdup_printf ("\\x{%0*X}",
(ch < 0x10000) ? 4 : 6,
insert_str = g_strdup_printf (ch < 0x10000 ? "\\u%04x" : "\\U%08x",
ch);
}
else