Skip Unicode BOM at start of XML.
authorScott Blomquist <scott@blomqui.st>
Thu, 19 Jul 2012 04:05:29 +0000 (21:05 -0700)
committerScott Blomquist <scott@blomqui.st>
Thu, 19 Jul 2012 04:09:02 +0000 (21:09 -0700)
eglib/src/gmarkup.c

index ae7b4a24bfcb7e31c7c806fb207fda7f81ba9f99..6a0b246a957bb00a0f814f03948eea3d107e969a 100644 (file)
@@ -276,7 +276,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
 
                switch (context->state){
                case START:
-                       if (c == ' ' || c == '\t' || c == '\f' || c == '\n')
+                       if (c == ' ' || c == '\t' || c == '\f' || c == '\n' || (c & 0x80))
                                continue;
                        if (c == '<'){
                                if (p+1 < end && p [1] == '?'){