Hacker News new | ask | show | jobs
by testplzignore 17 days ago
I wonder if there is a similar bug for U+0130 which (I think) expands to two characters when lowercased.
3 comments

Maybe somewhere! But that character isn't in Windows-1252 at all, so it can't trip this string counting bug.
I've encountered bugs with U+FB03 (Latin Small Ligature FFI) which expands to three characters when uppercased.
Wait, why would the Turkish dotted uppercase I expand to two characters?
Because, unless you use a Turkish locale for the case-conversion, it turns into a lowercase i plus a combining dot above.