Commit 49074730 authored by mercury233's avatar mercury233

update & fix setlocale

parent 525e41c4
...@@ -23,10 +23,12 @@ void ClickButton(irr::gui::IGUIElement* btn) { ...@@ -23,10 +23,12 @@ void ClickButton(irr::gui::IGUIElement* btn) {
} }
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
#if !defined(_WIN32) #if defined(FOPEN_WINDOWS_SUPPORT_UTF8)
std::setlocale(LC_CTYPE, "UTF-8"); setlocale(LC_CTYPE, ".UTF-8");
#elif defined(FOPEN_WINDOWS_SUPPORT_UTF8) #elif defined(__APPLE__)
setlocale(LC_CTYPE, ".UTF8"); setlocale(LC_CTYPE, "C.UTF-8");
#elif !defined(_WIN32)
setlocale(LC_CTYPE, "");
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
CFURLRef bundle_url = CFBundleCopyBundleURL(CFBundleGetMainBundle()); CFURLRef bundle_url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment