Fix problem with non-ascii filenames in include inset

* src/insets/insetinclude.C
	(InsetInclude::getScreenLabel): use from_utf8 instead of from_ascii


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16634 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2007-01-10 00:30:49 +00:00
parent bcb1654b15
commit 8673c7ef02

View File

@ -318,8 +318,7 @@ docstring const InsetInclude::getScreenLabel(Buffer const &) const
if (params_["filename"].empty()) if (params_["filename"].empty())
temp += "???"; temp += "???";
else else
// FIXME: We don't know the encoding of the filename temp += from_utf8(onlyFilename(to_utf8(params_["filename"])));
temp += from_ascii(onlyFilename(to_utf8(params_["filename"])));
return temp; return temp;
} }