Sometime between Windows 7 and Windows 8, Microsoft changed the localization of NaN
in de-DE (aka German (Germany)) from:
n. def.
to
NaN
Background
There are people on Earth who speak a language other than English; and who speak English in a country other than the United States.
As a result, different cultures have different ways to display a value that is "Not a number". For example:
- English: NaN
- Arabic: ليس برقم
- Greek: μη αριθμός
- Alsatian: Ohne Nummer
- Basque: EdZ
- Breton: NkN
- Catalan: NeuN
- Chinese: 非数字 (Simplified)
- Chinese: 非數字 (Traditional)
- Chinese: 不是一個數字 (Traditional, but in Taiwan)
- Corsican: Mica numericu
- Czech: Není číslo
- Dari: غ ع
- Dutch: Niet-een-getal
- Estonian: avaldamatu
- French: Non Numérique
- Galician: NeuN
- German: n. def.
- Hebrew: לא מספר
- Hungarian: nem szám
- Italian: Non un numero reale
- Japanese: 非数値
- Lower Sorbian: njedefinowane
- Luxembourgish: n. num.
- Mongolian: ᠲᠤᠭᠠᠠ ᠪᠤᠰᠤ
- Polish: nie jest liczbą
- Slovak: Nie je číslo
- Tibetian: ཨང་ཀི་མིན་པ།
And German speakers use n. def.:
- German (Austria): n. def.
- German (Germany): n. def.
- German (Liechtenstein): n. def.
- German (Luxembourg): n. def.
- German (Switzerland): n. def.
Note: What are all these variants of German, you're thinking? It's like the variants of English:
- English (United Kingdom)
- English (Ireland)
- English (Australia)
- English (New Zealand)
- English (Caribbean)
- English (Jamaica)
- English (Trinidad)
- English (Philippines)
- English (Canada)
- English (United States)
- English (Belize)
- English (Malaysia)
- English (India)
- English (South Africa)
- English (Singapore)
- English (Zimbabwe)
Until Windows 8
Sometimes between Windows 7 and Windows Server 2012, Microsoft changed (broke?) the localized string returned by GetLocaleInfo
with LOCALE_SNAN
for Germany (Germany) aka de-DE
:
| Locale | Windows 7 | Windows Server 2012 |
|------------------------|-----------|---------------------|
| German (Austria) | n. def. | n.def. |
| German (Germany) | n. def. | NaN |
| German (Liechtenstein) | n. def. | n.def. |
| German (Luxembourg) | n. def. | n.def. |
| German (Switzerland) | n. def. | n.def. |
What do you want us to do about it?
I'm hoping someone can confirm the regression, or perhaps that it's a declared bug.
I'm hoping someone can give a workaround (aside, of course, from detecting the OS version and returning custom values.
I'm hoping that someone on the localization team might see this question and weigh in. Perhaps @MichaelKaplan; who is the single greatest source of localization and globalization information.
Really, i just want someone to say, "Yes, you're right, Microsoft broke it. We are where we are, so let it go."