Skip to content

Commit

Permalink
restore locale patch (ollama#3091)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca authored and zhewang1-intc committed May 13, 2024
1 parent 4a5cddb commit 1e42968
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions llm/patches/04-locale.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/llama.cpp b/llama.cpp
index b27aa272..99372f9c 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -9360,7 +9360,7 @@ struct llm_tokenizer_wpm {
}

uint32_t to_lower(uint32_t code) {
- static const std::locale locale("en_US.UTF-8");
+ static const std::locale locale("");
#if defined(_WIN32)
if (code > 0xFFFF) {
return code;

0 comments on commit 1e42968

Please sign in to comment.