Hacker News new | ask | show | jobs
by quotequad 4167 days ago
This just shows the beauty of the Unix way of doing things. Simply:

12 10 4

works in all locales. :-)

1 comments

Until you can display negative numbers¹. Or have native numerals². Or need to know what the numbers even mean. :-)

__________

¹ I tend to set my minus sign to U+2212 to catch errors in code where we just use ToString() instead of ToString(CultureInfo.InvariantCulture). Almost as much fun as putting a Unicode character into your user name that isn't representable in the current legacy codepage on Windows.

² ۱۲ ۱۰ ۴ probably won't work as input to the application trying to parse that line ;)

How do you change your negative sign on a unixoid? The only reference to negative signs in locale(5) is under LC_MONETARY.