// need to force a fixed width encoding for
// \lstlistlistingname and \lstlistingname (bug 9382).
// This needs to be consistent with InsetListings::latex().
- docstring const ilname = it->second.name();
- bool const need_fixedwidth = !runparams_.isFullUnicode() &&
- (ilname == "Listings" ||
- ilname == "Include:Listings" ||
- ilname == "TOC:Listings");
+ bool const need_fixedwidth = it->second.fixedwidthpreambleencoding();
// language dependent commands (once per document)
snippets.insert(i18npreamble(it->second.langpreamble(),
buffer().language(),