diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-14 23:33:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-14 23:33:53 +0000 |
commit | 2bdce789186e00a610b5fc874e800da21af9c842 (patch) | |
tree | c21a0fc958fdf1bbb86f9a16d0edb4fff3b89f33 | |
parent | 84329192e508aa2df964d0e21b765293d8cee48a (diff) | |
download | fetchmail-2bdce789186e00a610b5fc874e800da21af9c842.tar.gz fetchmail-2bdce789186e00a610b5fc874e800da21af9c842.tar.bz2 fetchmail-2bdce789186e00a610b5fc874e800da21af9c842.zip |
Yoshihiko SARUMARU's patch,
svn path=/trunk/; revision=3257
-rw-r--r-- | env.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -177,10 +177,14 @@ char *rfc822timestamp(void) * Conform to RFC822. We generate a 4-digit year here, avoiding * Y2K hassles. Max length of this timestamp in an English locale * should be 29 chars. The only things that should vary by locale - * are the day and month abbreviations. + * are the day and month abbreviations. The set_locale calls prevent + * weird multibyte i18n characters (such as kanji) for showing up + * in your Received headers. */ + setlocale (LC_TIME, "C"); strftime(buf, sizeof(buf)-1, "%a, %d %b %Y %H:%M:%S XXXXX (%Z)", localtime(&now)); + setlocale (LC_TIME, ""); strncpy(strstr(buf, "XXXXX"), tzoffset(&now), 5); #else /* |