Re:CheatGPT
by grogenaut on Monday February 20, 2023 @06:37PM
(#34874383)
One of the smartest I ever felt was hearing some teammates a cube wall over saying "this one customer from poland says he's crashing a lot" (in our ui). I was like "is he in the polish locale/language? They asked.... yes... "I bet polish has different seperators and our split("/")[1] is crashing"... they checked, had him change to english, crash went away. I felt real yoda like. We had customer on chat so much easier to debug.
[ Parent
| on HN ]
Debugging is easy when you know you are coding incorrectly.
But why would Polish have a different path separator? That's a filesystem choice not a language choice.
Windows uses 0x5C as the path separator, and the character rendering of that codepoint is locale-dependent (most famously in Japanese encodings it's ¥). Apparently in most Polish encodings it's still \, although there's one obscure one where it becomes Ś.