blob: ce5c00508667f6db17e396714feed8e61b50ffe3 [file] [log] [blame]
Andrew Geissler1e34c2d2020-05-29 16:02:59 -05001From 7e8839731ae3fdf7502b91643aa6b252f6c5eaa6 Mon Sep 17 00:00:00 2001
2From: Adrian Bunk <bunk@stusta.de>
3Date: Thu, 14 May 2020 00:08:21 +0300
4Subject: The C.UTF-8 locale is not portable, use std::locale::classic()
5
6Upstream-Status: Inappropriate [Similar fix already in apt >= 1.3]
7Signed-off-by: Adrian Bunk <bunk@stusta.de>
8---
9 ftparchive/writer.cc | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
13index 25963820a..6ad571d2a 100644
14--- a/ftparchive/writer.cc
15+++ b/ftparchive/writer.cc
16@@ -984,7 +984,7 @@ ReleaseWriter::ReleaseWriter(FileFd * const GivenOutput, string const &/*DB*/) :
17 AddPatterns(_config->FindVector("APT::FTPArchive::Release::Patterns"));
18
19 time_t const now = time(NULL);
20- auto const posix = std::locale("C.UTF-8");
21+ auto const posix = std::locale::classic();
22
23 // FIXME: use TimeRFC1123 here? But that uses GMT to satisfy HTTP/1.1
24 std::ostringstream datestr;
25--
262.20.1
27