From: Franck A. <fr...@ne...> - 2005-05-19 12:21:28
|
Emmanuel Stapf [ES]: > (2) <doc>?</doc> > > where `?' is on my OS the character whose code is 153. > > Unfortunately trying to parse (2) with the XM_EIFFEL_PARSER causes an > error while reading `?'. The error simply says `parser error'. Is > this a bug in the parser? Is (2) a valid XML file? It's not a bug, (2) contains a misformed UTF8 sequence so it is rightly rejected. > Anyway, I've modified `is_escaped' as below: > > is_escaped (a_char: INTEGER): BOOLEAN is > -- Is this an escapable character? > do > Result := a_char = Lt_char.code > or a_char = Gt_char.code > or a_char = Amp_char.code > or a_char >= 128 > end > > and it works definitely better, but I'm not sure this is correct. Sounds correct indeed, and I think that was the intention, thanks for the fix. (Eric, could you commit it, I don't think I'll be able in the next week or so.) |