mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
496d82ac48
commit
7df46597e1
22 changed files with 63 additions and 63 deletions
|
|
@ -453,9 +453,9 @@ static int backwards_compatibility(const char *module, CONFIG_NODE *node,
|
|||
|
||||
/* fe-text term_type -> fe-common/core term_charset - for 0.8.10-> */
|
||||
if (strcmp(module, "fe-text") == 0) {
|
||||
if (strcasecmp(node->key, "term_type") == 0 ||
|
||||
if (g_ascii_strcasecmp(node->key, "term_type") == 0 ||
|
||||
/* kludge for cvs-version where term_charset was in fe-text */
|
||||
strcasecmp(node->key, "term_charset") == 0) {
|
||||
g_ascii_strcasecmp(node->key, "term_charset") == 0) {
|
||||
new_module = "fe-common/core";
|
||||
new_key = "term_charset";
|
||||
new_value = !is_valid_charset(node->value) ? NULL :
|
||||
|
|
@ -472,8 +472,8 @@ static int backwards_compatibility(const char *module, CONFIG_NODE *node,
|
|||
g_free(new_value);
|
||||
config_changed = TRUE;
|
||||
return new_key != NULL;
|
||||
} else if (strcasecmp(node->key, "actlist_moves") == 0 &&
|
||||
node->value != NULL && strcasecmp(node->value, "yes") == 0) {
|
||||
} else if (g_ascii_strcasecmp(node->key, "actlist_moves") == 0 &&
|
||||
node->value != NULL && g_ascii_strcasecmp(node->value, "yes") == 0) {
|
||||
config_node_set_str(mainconfig, parent, "actlist_sort", "recent");
|
||||
config_node_set_str(mainconfig, parent, node->key, NULL);
|
||||
config_changed = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue