|
@@ -934,6 +934,8 @@ bool RFC1123StrToTime(const char* const str,time_t &time)
|
|
|
signed int year = 0; // yes, Y23K problem – we gonna worry then…
|
|
signed int year = 0; // yes, Y23K problem – we gonna worry then…
|
|
|
std::string weekday, month, datespec, timespec, zone;
|
|
std::string weekday, month, datespec, timespec, zone;
|
|
|
std::istringstream ss(str);
|
|
std::istringstream ss(str);
|
|
|
|
|
+ auto const &posix = std::locale("C.UTF-8");
|
|
|
|
|
+ ss.imbue(posix);
|
|
|
ss >> weekday;
|
|
ss >> weekday;
|
|
|
// we only superficially check weekday, mostly to avoid accepting localized
|
|
// we only superficially check weekday, mostly to avoid accepting localized
|
|
|
// weekdays here and take only its length to decide which datetime format we
|
|
// weekdays here and take only its length to decide which datetime format we
|