[PATCH] Better solves Bug#860

Abhinav Agarwal aagarwal.gtr at gmail.com
Sat Mar 21 09:49:59 PDT 2015


i understand that the user should be able to write filename.<something> but
what if the user wants to have a file named as filename.something.<default
extension>. is such a scenario possible/plausible or am i overthinking it?
because given by the current code if the filename has a dot nothing gets
appended to it.

also,
it should default to .ssrf in windows as well from filename.append(".ssrf")
but it is not. this is not the case in linux, in linux it defaults to .ssrf.
also in windows if you were to name the file as "abc." it will get saved as
"abc.xml" on linux it will get saved as "abc.", Kindly comment. I am unable
to understand which code is controlling what happens in windows. i am using
the latest publicly released binary windows. please have a look at this:
https://www.screenr.com/cBvN

On Sat, Mar 21, 2015 at 9:03 PM, Lubomir I. Ivanov <neolit123 at gmail.com>
wrote:

> On 21 March 2015 at 17:21, Abhinav Agarwal <aagarwal.gtr at gmail.com> wrote:
> > two questions
> > 1. are we to NOT limit the user to only xml and ssrf extensions. can a
> user
> > have any extension he likes? concurrently, are we to NOT allow the user
> to
> > have a dot in his filename except the dot for extension?
>
> the .ssrf and .xml are the default extensions. what Robert says is
> that on export we should not limit the user as he should be able to
> write:
> filename.<something> and the function should still work and not append
> .ssrf automatically, making it:
> filename.<something>.ssrf
>
> > 2. why was it defaulting to xml in windows when no extension was
> specified?
> >
>
> the default format is XML based for both .ssrf and .xml (AFAIK). i can
> see it defaults to .ssrf, via:
> filename.append(".ssrf");
>
> lubomir
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150321/00840d96/attachment.html>


More information about the subsurface mailing list