Kaydet (Commit) 2eb8400b authored tarafından Andras Timar's avatar Andras Timar

tdf#89852 on Windows do not decode the filename for email subject

... because MAPISendMail does not accept Unicode

Change-Id: Id48a41d1cf25d1a991b0f83fd5daa1a65896e958
(cherry picked from commit 77ff5162)
Reviewed-on: https://gerrit.libreoffice.org/19830Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit cf4b042c)
üst f89bd662
......@@ -828,7 +828,11 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css:
OUString subject(
url.getBase(
INetURLObject::LAST_SEGMENT, false,
#ifdef WNT
INetURLObject::NO_DECODE)); // MAPISendMail does not accept Unicode
#else
INetURLObject::DECODE_WITH_CHARSET));
#endif
if (subject.isEmpty()) {
subject = maAttachedDocuments[0];
}
......
Markdown is supported
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