mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -2289,7 +2289,7 @@ char_u *enc_locale(void)
|
||||
// Make the name lowercase and replace '_' with '-'.
|
||||
// Exception: "ja_JP.EUC" == "euc-jp", "zh_CN.EUC" = "euc-cn",
|
||||
// "ko_KR.EUC" == "euc-kr"
|
||||
const char *p = (char *)vim_strchr((char_u *)s, '.');
|
||||
const char *p = vim_strchr(s, '.');
|
||||
if (p != NULL) {
|
||||
if (p > s + 2 && !STRNICMP(p + 1, "EUC", 3)
|
||||
&& !isalnum((int)p[4]) && p[4] != '-' && p[-3] == '_') {
|
||||
|
Reference in New Issue
Block a user