mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
e4c55c9d1f
commit
b25310faf1
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user