Commit 474c4753 474c4753f36e005df0ac71855d1e70a8d3e38d1d by Wojciech Polak

(util_rfc2047_decode): Test LANG if LC_ALL is null.

1 parent 4d8e49c7
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2003,
2004 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -1339,9 +1340,12 @@ util_rfc2047_decode (char **value)
return;
if (strcasecmp (charset, "auto") == 0)
{
/* Try to deduce the charset from LC_ALL variable */
/* Try to deduce the charset from LC_ALL or LANG variables */
tmp = getenv ("LC_ALL");
if (!tmp)
tmp = getenv ("LANG");
if (tmp)
{
char *sp;
......