3 ms·
System.Globalization is quite the feat of engineering. Setting CultureInfo is like getting onto an actual airplane. I don't know of any other ecosystem with doc
by bob1029 2y ago
System.Globalization is quite the feat of engineering. Setting CultureInfo is like getting onto an actual airplane. I don't know of any other ecosystem with docs like:
https://learn.microsoft.com/en-us/windows/apps/design/globalizing/japanese-era-change https://learn.microsoft.com/en-us/windows/apps/design/global...
- sam_lowry_ 2y agoIt is called locale and has been for many years: https://en.wikipedia.org/wiki/Locale_(computer_software) https://en.wikipedia.org/wiki/Locale_(computer_software)
- pjc50 2y ago> 令和_令_Reiwa_R twitch A classic which breaks lots of applications is the difference between number format "1,234.5" and "1.234,5" (some European countries).
- Ylpertnodi 2y agoI've had to adust to/ accomodate the difference between 1. and 1, almost daily. Very expensive if you fuck up. Very embarrassing if you fuck up, too.
- simiones 2y agoI've actually been responsible some 10 years ago for introducing a bug like this in an official release of an industry-standard tool for a somewhat niche industry. Some SQL queries we were generating ended up saying `SELECT x FROM t WHERE x < 1,02` if run on an any system with commas as the decimal separator. We found it and fixed a few weeks later, and I don't think we've ever had a complaint from the field about this, but it was still pretty eye opening about locales. The extra irony is that me and my colleagues live in a country that actually has this kind of locale, but no one in the entire extended team was using it, everyone uses a US locale.
- pmontra 2y agoI think that in my country it's “1'234,5“. It was when I learned to write many years ago before computers were common.