What environment variable affects the "charset" variable?
Jon LaBadie
mutter at jgcomp.com
Mon Jul 8 16:30:51 UTC 2019
On Mon, Jul 08, 2019 at 05:53:22AM -0500, Peng Yu wrote:
> Hi,
>
> `mutt -D` prints 'charset="iso-8859-1"' when it runs in a
> non-interactive bash session scheduled by crontab.
>
> But the same command prints 'charset="utf-8"' when it runs in an
> interactive bash session. I suspect that this is affected by an
> environment variable.
>
> Does anybody know why there is such a difference?
Processes run by cron do not mimic your login environment.
If you need specific things set that are typically set in
.profile etc., you need to set them in your crontab file
or the executed script.
jl
--
Jon H. LaBadie jon at jgcomp.com
11226 South Shore Rd. (703) 787-0688 (H)
Reston, VA 20190 (703) 935-6720 (C)
More information about the Mutt-users
mailing list