mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
0601336c24
commit
e5165f7fc3
@ -737,7 +737,7 @@ void Preamble::handle_package(Parser &p, string const & name,
|
|||||||
// we will output a note at the top of the document
|
// we will output a note at the top of the document
|
||||||
// explaining what to do.
|
// explaining what to do.
|
||||||
Encoding const * const enc = encodings.fromIconvName(
|
Encoding const * const enc = encodings.fromIconvName(
|
||||||
p.getEncoding(), Encoding::japanese, true);
|
p.getEncoding(), Encoding::japanese, false);
|
||||||
if (enc)
|
if (enc)
|
||||||
h_inputencoding = enc->name();
|
h_inputencoding = enc->name();
|
||||||
is_nonCJKJapanese = true;
|
is_nonCJKJapanese = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user