Test for the characters actually used in the given languages.

This commit is contained in:
Alcaro 2015-06-24 18:52:23 +02:00
parent d0b7522b13
commit df47a77387
3 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{