Remove unnecessary conversion

This commit is contained in:
Juergen Spitzmueller 2022-12-19 10:52:42 +01:00
parent c2a324e242
commit 0c6d0a86b9

View File

@ -3404,9 +3404,8 @@ void BufferParams::writeEncodingPreamble(otexstream & os,
&& !features.isProvided("inputenc")) {
if (package == Encoding::inputenc) {
// Main language requires (lua)inputenc
os << "\\usepackage["
<< from_ascii(doc_encoding);
os << "]{" << inputenc_package << "}\n";
os << "\\usepackage[" << doc_encoding << "]{"
<< inputenc_package << "}\n";
} else {
// We might have an additional language that requires inputenc
set<string> encoding_set = features.getEncodingSet(doc_encoding);
@ -3452,9 +3451,8 @@ void BufferParams::writeEncodingPreamble(otexstream & os,
&& features.isAvailable("ucs-2022/08/07")
&& !features.isProvided("ucs"))
os << "\\usepackage{ucs}\n";
os << "\\usepackage["
<< from_ascii(doc_encoding)
<< "]{" << inputenc_package << "}\n";
os << "\\usepackage[" << doc_encoding << "]{"
<< inputenc_package << "}\n";
break;
}
}