logo separator

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

From Steve Ratcliffe steve at parabola.me.uk on Thu Aug 27 10:37:14 BST 2009

Hi

> 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?

I agree that it should be an error if it cannot find the style, so I
shall do that.

As for the quotes, there is no need for quotes even if the filename has 
spaces in it.  The only exception would be if the filename started or 
ended with a space.

When the quotes are used in the shell, mkgmap never sees the quotes.

..Steve



More information about the mkgmap-dev mailing list