From df47a773872f1e9fc9672aad10e8c2536c5645bf Mon Sep 17 00:00:00 2001 From: Alcaro Date: Wed, 24 Jun 2015 18:52:23 +0200 Subject: [PATCH] Test for the characters actually used in the given languages. --- menu/intl/menu_hash_de.c | 2 +- menu/intl/menu_hash_fr.c | 2 +- menu/intl/menu_hash_pt.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/intl/menu_hash_de.c b/menu/intl/menu_hash_de.c index aa9bd03603..e33fdd8a06 100644 --- a/menu/intl/menu_hash_de.c +++ b/menu/intl/menu_hash_de.c @@ -25,7 +25,7 @@ * If you save this file as UTF-8, you'll break non-english characters * (e.g. German "Umlauts" and Portugese diacritics). */ -extern const char encoding_test[sizeof("ø")==2 ? 1 : -1]; +extern const char encoding_test[sizeof("äÄöÖßüÜ")==7+1 ? 1 : -1]; const char *menu_hash_to_str_de(uint32_t hash) { diff --git a/menu/intl/menu_hash_fr.c b/menu/intl/menu_hash_fr.c index 4eb06f83e5..5bf83305af 100644 --- a/menu/intl/menu_hash_fr.c +++ b/menu/intl/menu_hash_fr.c @@ -25,7 +25,7 @@ * If you save this file as UTF-8, you'll break non-english characters * (e.g. German "Umlauts" and Portugese diacritics). */ -extern const char encoding_test[sizeof("ø")==2 ? 1 : -1]; +extern const char encoding_test[sizeof("àéÉèêô")==6+1 ? 1 : -1]; const char *menu_hash_to_str_fr(uint32_t hash) { diff --git a/menu/intl/menu_hash_pt.c b/menu/intl/menu_hash_pt.c index 73828cae64..f3b3949934 100644 --- a/menu/intl/menu_hash_pt.c +++ b/menu/intl/menu_hash_pt.c @@ -25,7 +25,7 @@ * If you save this file as UTF-8, you'll break non-english characters * (e.g. German "Umlauts" and Portugese diacritics). */ -extern const char encoding_test[sizeof("ø")==2 ? 1 : -1]; +extern const char encoding_test[sizeof("áÁâãçéêíÍóõú")==12+1 ? 1 : -1]; const char *menu_hash_to_str_pt(uint32_t hash) {