Open alerque opened 2 years ago
Also we've short-circuited the distinction between languages and locales. To some extend we have scripts separated, but we cross-wire that with languages sometimes too.
jaberwalkie
is not a valid (parsable) Locale format for ICU (... there are constraints on field lengths), so it fallbacks to "en".
ukuaoeu
is valid. It perhaps doesn't exist, but it's canonical form. What was the expectation in this issue?
Interesting. I guess the expectation is that we always either get a KNOWN valid language code or "und" in the event it doesn't exist.
Having introduced a CLDR database in #675, I started using it to verify language settings.
Then I spotted the
\font
function does it's own form of verification. I'll let it speak for itself though because I have no idea what it thinks it is doing:c.f. #1367 for related brain teasers setting languages.