non-ASCII text attachments get broken upon downloading
Steps to reproduce
- Save the following text as
test.txt
:Тест.
. - Create a new mail, attach the
test.txt
, and send yourself. - Open the mail in "Sent" folder, and open the attachment
Expected
Attachment has size around 10 bytes, and the content Тест.
Actual
Size of the attachment is 1-2 bytes, and the content is just .
.
Additional information
Actually, the attachment that being sent is fine, which can be ensured by looking at the mail e.g. through a web-interface of email provider. This problem appears specifically for downloading attachments.
Version: Geary built from git, commit 67c30a37