summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2014-05-14 12:54:49 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2014-05-14 12:54:49 +0200
commit89f93872d8e024c761cc55335518f7d48d414fdb (patch)
treeb4cb8d700bb6fc18b98ff44222bcc3dfd0cabd5d
parentbac37baabe92c3f7473b2a91ec76b82271d04206 (diff)
downloadlibrcc-89f93872d8e024c761cc55335518f7d48d414fdb.tar.gz
librcc-89f93872d8e024c761cc55335518f7d48d414fdb.tar.bz2
librcc-89f93872d8e024c761cc55335518f7d48d414fdb.tar.xz
librcc-89f93872d8e024c761cc55335518f7d48d414fdb.zip
Fix handling of locale aliases
-rw-r--r--src/rcclocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcclocale.c b/src/rcclocale.c
index a7148c2..2d26077 100644
--- a/src/rcclocale.c
+++ b/src/rcclocale.c
@@ -90,7 +90,7 @@ int rccLocaleGetLanguage(char *result, const char *lv, unsigned int n) {
for (j=0;rcc_default_aliases[j].alias;j++)
if (strncmp(l,rcc_default_aliases[j].alias,i)==0) {
- l = rcc_default_aliases[j].alias;
+ l = rcc_default_aliases[j].lang;
break;
}