#include "support/lassert.h"
#include <limits.h>
+#include <locale.h>
#include <stdlib.h>
#ifdef __APPLE__
-#include <Carbon/Carbon.h>
+#include <CoreServices/CoreServices.h>
#endif
using namespace std;
{
argc_ = argc;
argv_ = argv;
+
+ // Set environment's default locale
+ setlocale(LC_ALL, "");
+ setlocale(LC_NUMERIC, "C");
}
string utf8_argv(int i)
{
- LASSERT(i < argc_, /**/);
+ LASSERT(i < argc_, return "");
return to_utf8(from_local8bit(argv_[i]));
}