summaryrefslogtreecommitdiffstats
path: root/x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch')
-rw-r--r--x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch b/x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch
new file mode 100644
index 0000000..59698e2
--- /dev/null
+++ b/x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch
@@ -0,0 +1,12 @@
+diff -dPNur gkrellm-xkb-1.05/main.c gkrellm-xkb-1.05-new/main.c
+--- gkrellm-xkb-1.05/main.c 2004-02-21 20:26:36.000000000 +0400
++++ gkrellm-xkb-1.05-new/main.c 2006-12-04 15:03:42.000000000 +0400
+@@ -585,7 +585,7 @@
+ int i;
+ i = 0;
+ while (global_flag_map[i].country_code) {
+- if (g_ascii_strcasecmp(global_flag_map[i].country_code, xkb_rules[pos]) == 0) {
++ if (STARTS_WITH(xkb_rules[pos], global_flag_map[i].country_code)) {
+ group->flag_xpm = global_flag_map[i].flag_pointer;
+ /* fprintf(stderr, "xkb_find_flag_from_rules: found flag: %s\n", xkb_rules[pos]); */
+ return True;