diff --git a/snake.c b/snake.c
index 78e42002c7141b0acb9dacb31b5f0eaeb58271ea..d01ae6d0a65000ada381b7b0ed7b3ba652254645 100644
--- a/snake.c
+++ b/snake.c
@@ -372,7 +372,9 @@ int core(int argc, char const *argv[])
     //----init tasks----
 
     if(isUnicodeEncoding(0)){
+        #ifndef __linux__
         setlocale(LC_ALL, ".utf-8");
+        #endif
     }
 
     //----import map----