Make setlocale fail non-fatal

This commit is contained in:
Jack Andersen 2016-09-25 11:33:39 -10:00
parent 9b0355be45
commit 10988fa37e
1 changed files with 2 additions and 5 deletions

View File

@ -303,11 +303,8 @@ public:
return; return;
} }
if (setlocale(LC_ALL, "") == nullptr) /* Program is portable to all locales */
{ setlocale(LC_ALL, "");
Log.report(logvisor::Fatal, "Can't setlocale");
return;
}
/* Open Xlib Display */ /* Open Xlib Display */
m_xDisp = XOpenDisplay(0); m_xDisp = XOpenDisplay(0);