Bug with Dive log from Suunto( without attachment)

Dirk Hohndel dirk at hohndel.org
Thu Jul 10 08:08:30 PDT 2014


On Thu, Jul 10, 2014 at 04:45:22PM +0200, Anton Lundin wrote:
> On 10 July, 2014 - Miika Turkia wrote:
> > 
> > Now that I have looked into Oldrich's XML file, it seems that Subsurface
> > writes the output XML file with invalid UTF-8 character in it. Thus the
> > parsing fails when trying to open that file. When I do the conversion on
> > Linux from Suunto to Subsurface, everything works but the save on Windows
> > is faulty.
> > 
> > The notes field in question starts with word Èekání but the resulting XML
> > file is missing the \xc3 from the first character:
> > 
> > echo -n Èekání | xxd
> > 0000000: c388 656b c3a1 6ec3 ad                   ..ek..n..
> > 
> > Does anyone have a clue of what could be the cause?
> > 
> 
> Could it be something ugly like that we traverse the string as char's in
> show_utf8 and call isspace(\xc3) and on windows that returns true?

Some googling shows that that's indeed the case. We may have to use our
own isspace to work around that Windows "feature". SOB.

/D


More information about the subsurface mailing list