summaryrefslogtreecommitdiffstats
path: root/crypt.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-08-22 20:04:52 -0700
committerKevin McCarthy <kevin@8t8.us>2016-08-22 20:04:52 -0700
commitdeb6db771f8b7991e9942ab54118e07c9e00c5e3 (patch)
tree58871934cb6e0d9689a3f4b00ba0316efb8b83c7 /crypt.c
parent6fd899ea7d98ebb74ccbea7283987ad090e11bd7 (diff)
Remove the $locale configuration variable.
$locale was only used to set the LC_TIME locale. Unfortunately, Mutt previously defaulted to using "C". This overrode the user's locale setting and forced them to re-specify their locale inside their .muttrc. Remove $locale and instead use the locale specified by the environment. Mutt still allows "C locale" dates by using a leading "!" in $date_format, ${}, etc. Another use of $locale was to customize attribution dates using hooks. The next commit will introduce $attribution_locale, which can be used for this instead. Thanks to Derek Martin for the original patch!
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypt.c b/crypt.c
index 7659fdc5..c852a314 100644
--- a/crypt.c
+++ b/crypt.c
@@ -64,9 +64,7 @@ void crypt_current_time(STATE *s, char *app_name)
if (option (OPTCRYPTTIMESTAMP))
{
t = time(NULL);
- setlocale (LC_TIME, "");
strftime (p, sizeof (p), _(" (current time: %c)"), localtime (&t));
- setlocale (LC_TIME, "C");
}
else
*p = '\0';