Description of Problem:
When I have system language set to swedish, swedish messages are starting to
show up here and there, for example in commands that anacron runs. Unfortunately
the emails that anacron sends do not have charset properly indicated. This leads
to broken non-ascii characters in popular email clients.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a cronscript in /etc/cron.daily containing for example the line
'LANG=sv_SE.UTF-8 chmod 0 /nonexistant'
2. Wait for anacron to run the script and send mail. The fourth word should
include ä but doesn't
The raw utf-8 sequence is displayed in the sent mail due to missing charset
The fourth word should include ä
I believe the correct way to do this is to always include Content-Type:
text/plain; charset=CHARSET in all email sent from anacron. The CHARSET value
should be fetched from nl_langinfo(3)
I added an untested patch to address this in anacron-2.3-28.
Could you please test it is ok, and if so close the bug?