Bug#688745: Set LC_TIME=C for process script
Package: debbugs
Version: 2.4.2~exp2
Severity: normal
Tags: experimental patch
On systems with locale other than some form of English (LANG!=en_<region>.<encoding>) debbugs
has to set (at least) LC_TIME env var explicitly to ,,C''. The process script renders strftime
strings and these generated strftime strings are rendered locale specific.
However, locale strftime/datetime strings conflict with RFC-2822:
http://tools.ietf.org/html/rfc2822#section-3.3
Patch attached.
Mike
-- System Information:
Debian Release: 6.0.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From 1bd7ff8b599048b29be47c29e7601991b6210e76 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Tue, 25 Sep 2012 12:08:15 +0200
Subject: [PATCH] Use locale independent date format for mail processing.
---
debian/changelog | 1 +
scripts/process | 2 ++
2 files changed, 3 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 1d062f9..f40f575 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,6 +44,7 @@ debbugs (2.4.2~exp2) UNRELEASED; urgency=low
* Make sure that mails to gSubscriptionDomain and gBugSubscriptionDomain
are only sent out if the variables in config are defined and
have a lenght < 0.
+ * Use locale independent date format for mail processing.
-- Don Armstrong <don@debian.org> Wed, 25 Aug 2010 01:57:38 -0700
diff --git a/scripts/process b/scripts/process
index 9fb2c2f..5a543a9 100755
--- a/scripts/process
+++ b/scripts/process
@@ -7,6 +7,8 @@
use warnings;
use strict;
+$ENV{LC_TIME}='C';
+
use POSIX qw(strftime);
use IO::File;
--
1.7.10
Reply to: