From 718c0214bf69540326268bd03d9cd7e31a311ad4 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 31 Aug 2006 22:07:49 +0000 Subject: [PATCH] (svn r6288) -Regression: Restore automatic language detection, which was broken in r4886 when the language codes got extended --- strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.c b/strings.c index 5804d93196..fab1628b5f 100644 --- a/strings.c +++ b/strings.c @@ -1250,7 +1250,7 @@ void InitializeLanguagePacks(void) dl->ent[m].name = strdup(hdr.name); if (strcmp(hdr.name, "English") == 0) fallback = m; - if (strcmp(hdr.isocode, lang) == 0) def = m; + if (strncmp(hdr.isocode, lang, 2) == 0) def = m; m++; }