![]() |
Saving with a non-GPX extension does strange things - Printable Version +- RouteConverter Forum (https://forum.routeconverter.com) +-- Forum: Users (https://forum.routeconverter.com/forum-17.html) +--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html) +--- Thread: Saving with a non-GPX extension does strange things (/thread-2341.html) |
Saving with a non-GPX extension does strange things - Maarten - 12.02.2017 While testing I came across this strange behaviour: when you save to a GPX file with a non-gpx extension, everything after the last . (dot) gets removed and then .gpx is added. So if you do save as, save as gpx (1.0 or 1.1), use filename "test-2.19-1", it will get saved as "test-2.gpx". I would have expected "test-2.19-1.gpx". If you enter "test-2.19-1.gpx" as filename, it will get saved as "test-2.19-1.gpx". RE: Saving with a non-GPX extension does strange things - routeconverter - 19.02.2017 (12.02.2017, 15:19)Maarten Wrote: While testing I came across this strange behaviour: when you save to a GPX file with a non-gpx extension, everything after the last . (dot) gets removed and then .gpx is added. Dear Maarten, that behaviour is intended to avoid that users save files and omit the extension. (12.02.2017, 15:19)Maarten Wrote: So if you do save as, save as gpx (1.0 or 1.1), use filename "test-2.19-1", it will get saved as "test-2.gpx". I would have expected "test-2.19-1.gpx". That's a side effect that could only be omitted if the check for a valid extension could determine more precisely what to cut off. |