Replace locale-dependent `std::strerror` with `SysErrorString`

pull/29910/head
Hennadii Stepanov 2 weeks ago
parent d8e4ba4d05
commit 08f756bd37
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -36,6 +36,8 @@ Documentation for C++ subprocessing library.
#ifndef BITCOIN_UTIL_SUBPROCESS_H
#define BITCOIN_UTIL_SUBPROCESS_H
#include <util/syserror.h>
#include <algorithm>
#include <cassert>
#include <csignal>
@ -150,7 +152,7 @@ class OSError: public std::runtime_error
{
public:
OSError(const std::string& err_msg, int err_code):
std::runtime_error( err_msg + ": " + std::strerror(err_code) )
std::runtime_error(err_msg + ": " + SysErrorString(err_code))
{}
};

Loading…
Cancel
Save