Move the encoding test to the files that actually need Latin-1.

This commit is contained in:
Alcaro 2015-06-24 18:07:09 +02:00
parent 52e99f5417
commit 189b5bcee8
4 changed files with 24 additions and 8 deletions

View File

@ -19,6 +19,14 @@
#include "../menu_hash.h"
/* IMPORTANT:
* For non-english characters to work without proper unicode support,
* we need this file to be encoded in ISO 8859-1 (Latin1), not UTF-8.
* 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];
const char *menu_hash_to_str_de(uint32_t hash)
{
switch (hash)

View File

@ -19,6 +19,14 @@
#include "../menu_hash.h"
/* IMPORTANT:
* For non-english characters to work without proper unicode support,
* we need this file to be encoded in ISO 8859-1 (Latin1), not UTF-8.
* 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];
const char *menu_hash_to_str_fr(uint32_t hash)
{
switch (hash)

View File

@ -19,6 +19,14 @@
#include "../menu_hash.h"
/* IMPORTANT:
* For non-english characters to work without proper unicode support,
* we need this file to be encoded in ISO 8859-1 (Latin1), not UTF-8.
* 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];
const char *menu_hash_to_str_pt(uint32_t hash)
{
switch (hash)

View File

@ -22,14 +22,6 @@
#include "../configuration.h"
/* IMPORTANT:
* For non-english characters to work without proper unicode support,
* we need this file to be encoded in ISO 8859-1 (Latin1), not UTF-8.
* 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];
const char *menu_hash_to_str(uint32_t hash)
{
const char *ret = NULL;