logwatch always send mail reports in locale C and (as supposed by author of logwatch) only those scripts who support reports in other locales use real system locale. Reproducible: Always Steps to Reproduce: 1. install sys-apps/logwatch and configure sendmail/ssmtp/whatever to send mails 2. send report Actual Results: e-mail is sent in default C locale(not in ru_RU.UTF-8 in my case) Expected Results: e-mail should be sent in system locale(in my case - ru_RU.UTF-8) This is not critical bug, BUT there some scripts(filesystem usage) that do not use $REAL_LANG variable, but can works well with system locale. Though i think that there must be a kind of patch for that situation. I upload my patch to logwatch.pl, it is works for me well, but it is locale-specific(ru_RU.UTF-8) and should be updated to be more general.
Created attachment 241377 [details, diff] patch for logwatch to send reports in UTF-8 As i said early this patch works for me well, but it should be updated. Also to make this patch work you must set variable "Print = No" in logwatch.conf
Does upstream know about this?
Yes they know about this problem, but upstream policy is "if script does not support $REAL_LANG variable, then it must send data only in C locale". But how can such support be in simple 'df -hs'? I think that this is weird...
sounds like a debate to be had with the logwatch guys
(In reply to comment #4) > sounds like a debate to be had with the logwatch guys agreed