gstat don't work on 7.0-BETA2

Thomas Hurst tom.hurst at clara.net
Tue Nov 13 04:43:28 PST 2007


* Anton Yuzhaninov (citrin at citrin.ru) wrote:

> It fail to parse xml because it contain non-ASCII symbols (in my case 
> cyrillic in cp1251) from CD label:

Not non-ASCII, non-UTF-8, which is the default for XML:

 geom-tree.xml:268: parser error : Input is not proper UTF-8, indicate
 encoding !
 Bytes: 0xEE 0xEA 0xF2 0x20
       <name>iso9660/21 îêò 2005</name>

These should be encoded as &#xEE;&#xEA;&#xF2;.

The file can also be made to parse by giving it an encoding by
prepending an XML prolog ala:

 <?xml version="1.0" encoding="iso-8859-1" ?>

Though this will just move the problem elsewhere (e.g. chars 1-31).
geom_dump.c doesn't even seem to cope with & or <; are these disallowed
at a higher level?

-- 
Thomas 'Freaky' Hurst
    http://hur.st/


More information about the freebsd-geom mailing list