From 6b97071bb383cdc037a4a76fa4e82b6c4a3a6434 Mon Sep 17 00:00:00 2001 From: programatix Date: Thu, 4 Jul 2019 09:58:29 +0800 Subject: [PATCH] Update strings.c The check condition is obviously wrong. It should check for EQUAL. The original bitwise check caused any other language to turn into DE because as long as a bit is filtered, it will hit. --- src/ui/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/strings.c b/src/ui/strings.c index 446e199c..cc3418ca 100644 --- a/src/ui/strings.c +++ b/src/ui/strings.c @@ -157,7 +157,7 @@ const char *ui_get_str(struct sc_context *ctx, struct sc_atr *atr, || !find_lang_str(p15card->tokeninfo->preferred_language, &lang)) { #ifdef _WIN32 LANGID langid = GetUserDefaultUILanguage(); - if (langid & LANG_GERMAN) { + if (langid == LANG_GERMAN) { lang = DE; } #else