mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
Bug 546876 - Modify GMarkup parser to accept  .. 
2008-08-08 Ryan Lortie <desrt@desrt.ca> * glib/gmarkup.c: previously the parser only accepted character references for \t \n and \r (as per XML 1.0); now it accepts all of  .. . svn path=/trunk/; revision=7326
This commit is contained in:
parent
82f550106a
commit
4958c5cd4e
@ -1,3 +1,11 @@
|
|||||||
|
2008-08-08 Ryan Lortie <desrt@desrt.ca>
|
||||||
|
|
||||||
|
Bug 546876 - Modify GMarkup parser to accept  .. 
|
||||||
|
|
||||||
|
* glib/gmarkup.c: previously the parser only accepted character
|
||||||
|
references for \t \n and \r (as per XML 1.0); now it accepts all
|
||||||
|
of  .. .
|
||||||
|
|
||||||
2008-08-07 Tor Lillqvist <tml@novell.com>
|
2008-08-07 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* configure.in: Output comment clarifying GPid semantics to
|
* configure.in: Output comment clarifying GPid semantics to
|
||||||
|
@ -634,13 +634,10 @@ unescape_text_state_after_charref_hash (UnescapeContext *ucontext,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* characters XML permits */
|
/* characters XML 1.1 permits */
|
||||||
if (l == 0x9 ||
|
if ((0 < l && l <= 0xD7FF) ||
|
||||||
l == 0xA ||
|
(0xE000 <= l && l <= 0xFFFD) ||
|
||||||
l == 0xD ||
|
(0x10000 <= l && l <= 0x10FFFF))
|
||||||
(l >= 0x20 && l <= 0xD7FF) ||
|
|
||||||
(l >= 0xE000 && l <= 0xFFFD) ||
|
|
||||||
(l >= 0x10000 && l <= 0x10FFFF))
|
|
||||||
{
|
{
|
||||||
gchar buf[8];
|
gchar buf[8];
|
||||||
g_string_append (ucontext->str, char_str (l, buf));
|
g_string_append (ucontext->str, char_str (l, buf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user