diff options
Diffstat (limited to 'src/unix/main_unix.cpp')
| -rw-r--r-- | src/unix/main_unix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unix/main_unix.cpp b/src/unix/main_unix.cpp index c291ee5..823c66d 100644 --- a/src/unix/main_unix.cpp +++ b/src/unix/main_unix.cpp @@ -74,7 +74,7 @@ static void drop_callback(GLFWwindow* window, int count, const char** paths) ts_font_range _ts_get_font_range_to_load() { wchar_t buffer[50] = {0}; - char* ll = setlocale(LC_ALL, NULL); + char* ll = setlocale(LC_CTYPE, NULL); mbstowcs (buffer, ll, 50); wchar_t* iter = buffer; @@ -82,6 +82,7 @@ ts_font_range _ts_get_font_range_to_load() { if (*iter == ' ') *iter = 0; if (*iter == '.') *iter = 0; if (*iter == '@') *iter = 0; + if (*iter == '_') *iter = '-'; iter++; } |
