logo separator

[mkgmap-dev] Defining style-file using template.args - bug?

From Charlie Ferrero charlie at cferrero.net on Thu Aug 27 10:26:05 BST 2009

Hello list,

I have been playing around with defining the style-file in the 
template.args file instead of in the command line.  After about 4 hours 
of inconsistent results I have by painful trial and error discovered the 
following.

If I use this line in template.args everything works:

style-file: ../mkgmap/resources/styles/mystyle

But if I use this line:

style-file: "../mkgmap/resources/styles/mystyle"
mkgmap silently fails and applies the default style.

Why does it bork on the ""?  How would it cope if you had Windows-like 
spaces in your path to the style file?  It would *really* help if 
someone could add a quick patch to make sure mkgmap fails elegantly when 
it can't find the style file.

The same problem does not occur if you invoke mkgmap with the 
--style-file="../mkgmap/resources/styles/mystyle" option - presumably 
the command line interpreter handles the "" properly here?

Charlie






More information about the mkgmap-dev mailing list