Sfoglia il codice sorgente

Locale fix for Windows (#1379)

DannyDaemonic 2 anni fa
parent
commit
e6a46b0ed1
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      examples/common.cpp

+ 2 - 1
examples/common.cpp

@@ -520,8 +520,9 @@ void console_init(console_state & con_st) {
     if (con_st.tty != nullptr) {
     if (con_st.tty != nullptr) {
         con_st.out = con_st.tty;
         con_st.out = con_st.tty;
     }
     }
-#endif
+
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
+#endif
 }
 }
 
 
 void console_cleanup(console_state & con_st) {
 void console_cleanup(console_state & con_st) {