From b54d06630db4d804319e4d8f44d8bc1444f0f664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 15 Jan 2022 09:52:23 +0100 Subject: [PATCH] irc: fix completion of channel topic with UTF-8 chars (issue #1739) --- ChangeLog.adoc | 1 + src/plugins/irc/irc-completion.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 511a64da2..225e23bae 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -29,6 +29,7 @@ Bug fixes:: * core: fix search of commands with UTF-8 chars in name when option weechat.look.command_incomplete is on (issue #1739) * core: fix display of hotlist in buflist after changing value of option weechat.look.hotlist_sort (issue #1733) * api: fix add of infolist items in hashtable when prefix contains UTF-8 chars in function hashtable_add_from_infolist (issue #1739) + * irc: fix completion of channel topic with UTF-8 chars (issue #1739) * irc: fix parsing of messages 311, 312, 327 (whois) and 314 (whowas) in case of missing parameters * irc: fix parsing of message 338 (whois, host) sent by Rizon server (issue #1737) * irc: fix display of message 344 received as whois geo info (issue #1736) diff --git a/src/plugins/irc/irc-completion.c b/src/plugins/irc/irc-completion.c index 0d8653dc1..32ff98949 100644 --- a/src/plugins/irc/irc-completion.c +++ b/src/plugins/irc/irc-completion.c @@ -531,7 +531,7 @@ irc_completion_channel_topic_cb (const void *pointer, void *data, { if (irc_server_strncasecmp (ptr_server, ptr_channel->topic, ptr_channel->name, - strlen (ptr_channel->name)) == 0) + weechat_utf8_strlen (ptr_channel->name)) == 0) { /* * if topic starts with channel name, add another channel name