Actions
Feature #3101
closed[patch] make channel-icons-lower-case
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2015-09-22
Due date:
% Done:
100%
Estimated time:
Description
Hi,
i've been using this patch to make all icon-names lower case (it's much easier to maintain this way and i can simply "sanitize" all files from different sources). If you find this usefull, could someone apply this (or, make a selectable option, which is way above my programming skills) :)
diff --git a/src/channels.c b/src/channels.c
index 6ae0619..b3235cb 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -592,6 +592,8 @@ channel_get_icon ( channel_t *ch )
/* Remove problematic characters */
s = sname;
while (s && *s) {
+ if (*s <= 'Z' && *s >= 'A')
+ *(char *)s = *s - 'A' + 'a';
if (*s <= ' ' || *s > 122 ||
strchr("/:\\<>|*?'\"", *s) != NULL)
*(char *)s = '_';
Actions