[mkgmap-dev] Mkgmap exception while reading "options" file
From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Feb 28 06:19:51 GMT 2014
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 at free.fr > To: mkgmap-dev at lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] Mkgmap exception while reading "options" file > > Selon Gerd Petermann <gpetermann_muenchen at 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 at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140228/e96b058b/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: TokenScanner.patch Type: application/octet-stream Size: 466 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140228/e96b058b/attachment.obj>
- Previous message: [mkgmap-dev] Mkgmap exception while reading "options" file
- Next message: [mkgmap-dev] Mkgmap exception while reading "options" file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list