tags 410057 + patch
thanks

> I tried to source and export my
> system's locale variables (LANG and LC_*) in /etc/init.d/cron but it
> did not effect to emails sent by the cron.

I was wrong. This works just fine; I don't know what I did wrong first. 

Anyway, I suggest to add something like the following lines


environment=/etc/environment
default_locale=/etc/default/locale
[ -e $environment ] && . $environment
[ -e $default_locale ] && . $default_locale
export LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE \
LC_MEASUREMENT LC_IDENTIFICATION LC_ALL


to the /etc/init.d/cron file. After that cron respects system's locales 
and sends emails encoded accordingly.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to