summaryrefslogtreecommitdiff
path: root/src/core/wee-utf8.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-15 11:26:24 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:13:51 +0100
commit498ee539ea6360a0d242a68f40117cf903b0862d (patch)
tree5127c8d1a678e8f77062c43157cdcff43f78138b /src/core/wee-utf8.c
parentf0415c8ec3c6def45e5e61756e9a521f25e5f8a3 (diff)
downloadweechat-498ee539ea6360a0d242a68f40117cf903b0862d.zip
core: make case insensitive comparison with a lower case string (issue #1872)
This is faster because with case insensitive comparison, the chars are converted to lower case anyway before being compared.
Diffstat (limited to 'src/core/wee-utf8.c')
-rw-r--r--src/core/wee-utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-utf8.c b/src/core/wee-utf8.c
index fddda7c83..b29870f3f 100644
--- a/src/core/wee-utf8.c
+++ b/src/core/wee-utf8.c
@@ -44,7 +44,7 @@ int local_utf8 = 0;
void
utf8_init ()
{
- local_utf8 = (string_strcasecmp (weechat_local_charset, "UTF-8") == 0);
+ local_utf8 = (string_strcasecmp (weechat_local_charset, "utf-8") == 0);
}
/*