Exclude unsafe encodings when setting the inputencoding value.

All of the japanese encodings are safe, but nevertheless the
logic here should exclude unsafe encodings.
This commit is contained in:
Julien Rioux 2013-01-23 12:30:15 +01:00
parent 0601336c24
commit e5165f7fc3

View File

@ -737,7 +737,7 @@ void Preamble::handle_package(Parser &p, string const & name,
// we will output a note at the top of the document
// explaining what to do.
Encoding const * const enc = encodings.fromIconvName(
p.getEncoding(), Encoding::japanese, true);
p.getEncoding(), Encoding::japanese, false);
if (enc)
h_inputencoding = enc->name();
is_nonCJKJapanese = true;