http://bugzilla.lyx.org/show_bug.cgi?id=3622

I traced this bug a little bit and find some weird things going on.

If you insert a Date external material, you of couse does not need any
input file. Then, this dialog gives a default value '.', which is
interpreted as 'current directory' by InsetExternal, and pass a path
to converter. When the converter trys to lyx::sum() it, that function
can not handle it, thus fail. Interestingly, if I enter any valid
input file for this input, date will appear correctly.

It is likely Uwe and others are using another version of lyx::sum (see
support/lyxsum.cpp for details) so their function can actually handle
a directory. My configuration uses the HAVE_DECL_ISTREAMBUF_ITERATOR
version which fails at line 129.

If I try/catch line 129-135 of src/support/lyxsum.cpp, my problem will
disappear. However, I need some input on how things are supposed to
work, if passing . is intentional, and how lyx::sum is supposed to
handle this case...

Cheers,
Bo

Reply via email to