[polari] util: Casefold basenick
- From: Florian MĂźllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] util: Casefold basenick
- Date: Thu, 18 Feb 2016 00:15:26 +0000 (UTC)
commit 7d6a7dbfba63e2ee3cbfdf1a2284bb1748de7bf1
Author: Florian MĂźllner <fmuellner gnome org>
Date: Mon Feb 8 19:33:51 2016 +0100
util: Casefold basenick
The purpose of "basenicks" is to group different nicks that supposedly
identify the same person - it makes sense to not only apply this to
different suffixes, but also differences in case.
https://bugzilla.gnome.org/show_bug.cgi?id=761723
src/lib/polari-util.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lib/polari-util.c b/src/lib/polari-util.c
index 4da11ba..93f5141 100644
--- a/src/lib/polari-util.c
+++ b/src/lib/polari-util.c
@@ -37,7 +37,7 @@ polari_util_get_basenick (const char *nick)
;
if (len > 0)
- return g_strndup (nick, len);
+ return g_utf8_casefold (nick, len);
else
- return g_strdup (nick);
+ return g_utf8_casefold (nick, -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]