We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c80b52 commit 9ff6e10Copy full SHA for 9ff6e10
1 file changed
Common/Utils/src/FileFetcher.cxx
@@ -20,6 +20,8 @@
20
#include <memory>
21
#include <thread>
22
#include <chrono>
23
+#include <cstdlib>
24
+#include <locale>
25
#include <boost/process.hpp>
26
27
using namespace o2::utils;
@@ -233,6 +235,20 @@ void FileFetcher::fetcher()
233
235
return;
234
236
}
237
238
+ // BOOST requires a locale set
239
+ try {
240
+ std::locale loc("");
241
+ } catch (const std::exception& e) {
242
+ setenv("LC_ALL", "C", 1);
243
244
245
+ LOG(INFO) << "Setting locale";
246
247
+ LOG(INFO) << "Setting locale failed: " << e.what();
248
+ return;
249
+ }
250
251
+
252
while (mRunning) {
253
mNLoops = mNFilesProc / getNFiles();
254
if (mNLoops > mMaxLoops) {
0 commit comments