Commit ec37fe67 authored by David Faure's avatar David Faure
Browse files

Fix encoding problem with `kmail --msg $PWD/file.txt`

If the file contains UTF-8, on a Linux sytem with UTF-8 locale,
the message composer was showing bad encoding due to the toLatin1()
call (how could this be correct for non-latin1 users anyway...).

The weird thing is that it basically reverts the last commit in
bug 403313, but I guess things changed in kmime or OTP or something
parent 5065e5a2
Pipeline #36611 failed with stage
in 4 minutes and 56 seconds
......@@ -92,7 +92,7 @@ void OpenComposerJob::start()
if (!str.isEmpty()) {
mContext = KMail::Composer::NoTemplate;
mMsg->setBody(QString::fromLocal8Bit(, str.size()).toLatin1());
} else {
TemplateParser::TemplateParserJob *parser = new TemplateParser::TemplateParserJob(mMsg, TemplateParser::TemplateParserJob::NewMessage);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment