X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/5d467e2092a9e4083f86b5f9bbea49fb4e7e3850..c6dcd6d5c03abdcaa075bb4734b78a6bb9de9b94:/apt-pkg/contrib/strutl.cc diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index 23c2f78e5..ca924e578 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -934,6 +934,8 @@ bool RFC1123StrToTime(const char* const str,time_t &time) signed int year = 0; // yes, Y23K problem – we gonna worry then… std::string weekday, month, datespec, timespec, zone; std::istringstream ss(str); + auto const &posix = std::locale("C.UTF-8"); + ss.imbue(posix); ss >> weekday; // we only superficially check weekday, mostly to avoid accepting localized // weekdays here and take only its length to decide which datetime format we