3 ms·
Sure, any naive implementation will lead to pain and catastrophe. But I don't buy that this is a cogent and concise argument to NOT do it.
by officialchicken 11y ago
Sure, any naive implementation will lead to pain and catastrophe. But I don't buy that this is a cogent and concise argument to NOT do it.
- mikeash 11y agoWhat does the non-naive implementation look like? You say "support libraries" but what sort of support do they provide for the machine-interface scenario? How do they avoid problems such as forgetting to put a switch through the libraries and ending up with code that only works in some localizations?
- chris_wot 11y agoThe non-naive version sets the PowerShell culture/Bash locale before it runs anything.
- mikeash 11y agoThat works, but it also means that non-English speakers have to learn everything twice.
- chris_wot 11y agoNot sure I see the point you are attempting to make.
- mikeash 11y agoThe great thing about shell scripting is that you use the same commands for interactive use and scripting. If interactive use is localized but scripting is not then that no longer applies.
- chris_wot 11y agoYou add the locale to your script and the problem goes away. You still haven't explained how that's a problem.