cannot parse a DLD file
Miika Turkia
miika.turkia at gmail.com
Tue Mar 26 12:44:17 PDT 2013
On Tue, Mar 26, 2013 at 9:15 PM, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> i have a file over here named Rainer.DLD (attachment) and it came from
> when i tested the Windows file extension registration. not sure what
> has happened since this file ended here, but i remember i was able to
> open/test with it.
>
> miika, this is what i get now:
>
> ---------
> ./subsurface ./Rainer.dld
> ./Rainer.dld:10: parser error : Unregistered error message
> <LOCATION><![CDATA[
> ^
> ./Rainer.dld:10: parser error : Premature end of data in tag LOCATION line 10
> <LOCATION><![CDATA[
> ^
> ./Rainer.dld:10: parser error : Premature end of data in tag DIVELOGSDATA line 1
> <LOCATION><![CDATA[
> ^
> Failed to parse './Rainer.dld'.
> -----------
>
> i think i have all pre-processor macros defined and such, but this
> could be something on my end only.
I do get the same error. It appears to be because of support for
Cyrillic (and other non latin1) charactersets in parse-xml.c, function
preprocess_divelog_de. The current code assumes that CDATA content is
encoded with character references but characters like ö and ä do not
cause this to occur (being valid iso-8859-1 characters). And function
xmlStringLenDecodeEntities fails because of non-supported input.
miika
More information about the subsurface
mailing list