summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-04-26 12:25:19 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-04-26 12:25:19 +0000
commitb25310faf1b41e105394e4791bc8acba2e9c796d (patch)
tree12d3c91c8490e1230f24b274324031d85e60eea7
parente4c55c9d1f7891490ea80b6ff9a49b7baf11606f (diff)
downloadirssi-b25310faf1b41e105394e4791bc8acba2e9c796d.zip
Fix tr_TR locale problem for glib2 (still a bug with glib1.2) by David Pashley
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3728 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/perl/perl-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/perl/perl-common.c b/src/perl/perl-common.c
index 4ff3b64a..02ae28dd 100644
--- a/src/perl/perl-common.c
+++ b/src/perl/perl-common.c
@@ -566,8 +566,13 @@ static void perl_register_protocol(CHAT_PROTOCOL_REC *rec)
chat_type = chat_protocol_lookup(rec->name);
g_return_if_fail(chat_type >= 0);
+#if GLIB_MAJOR_VERSION < 2
name = g_strdup(rec->name);
g_strdown(name+1);
+#else
+ name = g_ascii_strdown(rec->name,-1);
+ *name = *(rec->name);
+#endif
/* window items: channel, query */
type = module_get_uniq_id_str("WINDOW ITEM TYPE", "CHANNEL");