Bug#688745: Patch Update for LC_TIME issue

Mike Gabriel <[email protected]>
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <20120926100636.199844y18u61upvw__13055.2086666741$1348646970$gmane$org@mail.das-netzwerkteam.de>
Hi all,

attached is a patch update for the reported LC_TIME issue in the  
process script.

Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
0001-Use-locale-independent-date-format-for-mail-processi.patch (text/x-diff, 1.1 KB)
>From f46e039b90de6c99843159048ef93272cb724a82 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <[email protected]>
Date: Tue, 25 Sep 2012 12:08:15 +0200
Subject: [PATCH 1/2] Use locale independent date format for mail processing.

---
 debian/changelog |    1 +
 scripts/process  |    4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

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 <[email protected]>  Wed, 25 Aug 2010 01:57:38 -0700
 
diff --git a/scripts/process b/scripts/process
index 9fb2c2f..75c487a 100755
--- a/scripts/process
+++ b/scripts/process
@@ -7,7 +7,9 @@
 use warnings;
 use strict;
 
-use POSIX qw(strftime);
+use locale;
+use POSIX qw(strftime locale_h);
+setlocale(LC_TIME, "C");
 
 use IO::File;
 
-- 
1.7.10
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJQYreMAAoJEJr0azAldxsx5AcQALBDBbht/wEqtdQ4r3maDhsq
0LhwV/GJNJB0LktplPUQdrI6qNvY7J74wUS3DgsamdQDyCIhYu6Lvp4uhYRLj/F3
fsF3mBAJXY6/yqm5WVVAHY0v2TjLVsOOhXVbWFsLf1j0lWGurIhsmD2z2FxbLPuC
x09EB3UZz0xHmtHXAZ8ELTecxePbVxNhofnONdBw2cpMjwf7NjX8piVa0Ix+M7sj
pyzGiyVM+s1PlFwAohEsKRQXIPlT+Hp1oZeDyxDH6DL8Oo9+dBKJZjzUPT5E2DdU
1Yhm/zo+0trXIy7vdxNKqX9qOcn5PMbW+XBI7A+2NUkj0mT0kSJJ50kr+Htk54g2
mLdC/vu0d4RhvzGxl2Lea+4Hw1EpOeFcVELma5R48QuWTvnEMDJ5LIHTBvhtUjeB
iFzujMFmXLmLE2PYo5r+1N6TkxAY21lzT7W/436A02oLEprGGUfl7103DTK0NKHS
PZQlDqN2C0X/yhZGwYn1t8c4cm769wD45M+BHNaE71KSHWLY5h1SX7pQSK3oHivz
awXqODefAiyM/FDeZiMaE/ihuUK8NEAWa7+Xi8nxjLAv/OjKLZVRMmEfHiALKwop
mXzIVycF5ROgC82If7gxIDXLVZOeIG02tvS7hjSFgKfBCXJBr6VXQeJxTXIYY909
ZvUb+BzpMSP2uElSKVTe
=I2OQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.