]> git.saurik.com Git - apt.git/commitdiff
* ftparchive/writer.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 22 Feb 2011 12:24:40 +0000 (13:24 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 22 Feb 2011 12:24:40 +0000 (13:24 +0100)
  - ensure that Date and Valid-Until time strings are not localised

debian/changelog
ftparchive/writer.cc

index bb0b111479966ad566c2f69c6021c9ff8c470137..4712e80c42d014430998e4d509492a26793f0dbd 100644 (file)
@@ -1,10 +1,16 @@
+
 apt (0.8.11.6) UNRELEASED; urgency=low
 
+  [ Christian Perrier ]
   * Fix error in French translation of manpages (apt_preferences(5)).
     Merci, RĂ©mi Vanicat. Closes: #613689
   * Complete French manpage translation
 
- -- Christian Perrier <bubulle@debian.org>  Fri, 18 Feb 2011 05:53:49 +0100
+  [ David Kalnischkies ]
+  * ftparchive/writer.cc:
+    - ensure that Date and Valid-Until time strings are not localised
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 22 Feb 2011 13:22:58 +0100
 
 apt (0.8.11.5) unstable; urgency=low
 
index 9cdca8d3e80067dfbf43bca23a87416f088c9635..80ec61ab9538205494e7fd479b9cceb4d8c33004 100644 (file)
@@ -925,6 +925,9 @@ ReleaseWriter::ReleaseWriter(string const &DB)
 
    Output = stdout;
    time_t const now = time(NULL);
+
+   setlocale(LC_TIME, "C");
+
    char datestr[128];
    if (strftime(datestr, sizeof(datestr), "%a, %d %b %Y %H:%M:%S UTC",
                 gmtime(&now)) == 0)
@@ -941,6 +944,8 @@ ReleaseWriter::ReleaseWriter(string const &DB)
       validstr[0] = '\0';
    }
 
+   setlocale(LC_TIME, "");
+
    map<string,string> Fields;
    Fields["Origin"] = "";
    Fields["Label"] = "";