Commit ef3f7c2f authored by Christophe Mutricy's avatar Christophe Mutricy

No fallback for Sorani

Fix 271354ef.
locale_match() only support 2 char code and i can't be bothered to expand it for a rare language
parent 1d100357
...@@ -91,7 +91,7 @@ static const char *FindFallbackEncoding (const char *locale) ...@@ -91,7 +91,7 @@ static const char *FindFallbackEncoding (const char *locale)
return "CP1251"; // KOI8, ISO-8859-5 and CP1251 are incompatible(?) return "CP1251"; // KOI8, ISO-8859-5 and CP1251 are incompatible(?)
/* Arabic (ISO-8859-6) */ /* Arabic (ISO-8859-6) */
static const char arabic[] = "ar" "ckb" "fa"; static const char arabic[] = "ar" "fa";
if (!locale_match (arabic, locale)) if (!locale_match (arabic, locale))
// FIXME: someone check if we should return CP1256 or ISO-8859-6 // FIXME: someone check if we should return CP1256 or ISO-8859-6
return "CP1256"; // CP1256 is(?) more common, but incompatible(?) return "CP1256"; // CP1256 is(?) more common, but incompatible(?)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment