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