From 7a98427aa17fadedb97764f3e5364f996417fc1a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 14 Mar 2024 14:24:20 +0100 Subject: [PATCH] skip localization on windows --- client/src/proxmark3.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/client/src/proxmark3.c b/client/src/proxmark3.c index d31f8f85e..97472795a 100644 --- a/client/src/proxmark3.c +++ b/client/src/proxmark3.c @@ -38,9 +38,7 @@ #include "preferences.h" #include "commonutil.h" -#ifdef _WIN32 -#include -#else +#ifndef _WIN32 #include #endif @@ -108,17 +106,7 @@ static void showBanner_logo(LogoMode mode) { } static uint8_t detect_current_lang(void) { - #ifdef _WIN32 - const char* lang[LOCALE_NAME_MAX_LENGTH]; - if (GetUserDefaultLocaleName(lang, LOCALE_NAME_MAX_LENGTH) > 0) { - if (memcmp(lang, "fr", 2) == 0) { - return 2; - } - if (memcmp(lang, "es", 2) == 0) { - return 3; - } - } - #else + #ifndef _WIN32 const char* lang = setlocale(LC_ALL, ""); if (lang == NULL) { return 1;