When trying to insert a child document with a non-ascii filename LyX
asserts:

Assertion triggered in const lyx::docstring lyx::from_ascii(const std::string&) 
by failing check "static_cast<unsigned char>(ascii[i]) < 0x80" in file 
../../../src/support/docstring.C:41

The fix is obvious (see attached), but I would like to know if I can
also ditch the comment as it is bogus, apparently.

-- 
Enrico
Index: src/insets/insetinclude.C
===================================================================
--- src/insets/insetinclude.C   (revision 16623)
+++ src/insets/insetinclude.C   (working copy)
@@ -319,7 +319,7 @@ docstring const InsetInclude::getScreenL
                temp += "???";
        else
                // FIXME: We don't know the encoding of the filename
-               temp += from_ascii(onlyFilename(to_utf8(params_["filename"])));
+               temp += from_utf8(onlyFilename(to_utf8(params_["filename"])));
 
        return temp;
 }

Reply via email to