<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Paco,<br><br>ah,yes, missing line feeds at the end of the file are<br>causing trouble in many programs. Sometimes such a <br>last line is completely ignored.<br>I can reproduce the problem on Windows, so I wonder if the migration<br>to Mavericks really changed your file ?<br><br>It's a good idea to add an empty line to the end of all style files.<br><br>@Steve : Attached is a patch that solves this issue,<br>but I think the real problem is that isEOF is not set to true<br>at the right place in TokenScanner. Can you have a look at it?<br><br>Gerd<br><br><div>> Date: Thu, 27 Feb 2014 22:45:05 +0100<br>> From: paco.tyson@free.fr<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Mkgmap exception while reading "options" file<br>> <br>> Selon Gerd Petermann <gpetermann_muenchen@hotmail.com>:<br>> <br>> > Hi Paco,<br>> ><br>> > I hope r3069 helps you to find out where the problem<br>> > is.<br>> ><br>> > Gerd<br>> <br>> <br>> Using r3069, when checking the style, I get :<br>> <br>> "Error: Levels specification not all numbers: 5:17,6:15,7:14null check 7:14null"<br>> <br>> I found out with an hex editor that :<br>> - line endings are LF<br>> - encoding doesn't matter : latin1 or utf-8 output the same result<br>> <br>> However the file was missing a LF at the end of the last line. Simply adding a<br>> blank line at the end of the file solved the issue.<br>> <br>> <br>> Out of curiosity, I tried removing the last LF character in the lines file but<br>> it doesn't trigger the issue.<br>> <br>> <br>> Thanks Gerd and Steve for the help. :)<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>