From cb12d0a677b63b6faeaefeda475c466d66fed212 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 22 Feb 2011 13:24:40 +0100 Subject: * ftparchive/writer.cc: - ensure that Date and Valid-Until time strings are not localised --- ftparchive/writer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ftparchive') diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 9cdca8d3e..80ec61ab9 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -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 Fields; Fields["Origin"] = ""; Fields["Label"] = ""; -- cgit v1.2.3