]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Locale fix for Windows (#1379)
authorDannyDaemonic <redacted>
Tue, 9 May 2023 17:53:28 +0000 (10:53 -0700)
committerGitHub <redacted>
Tue, 9 May 2023 17:53:28 +0000 (19:53 +0200)
examples/common.cpp

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