Comment by kevin_thibedeau

18 hours ago

With Turkish you can't safely case-fold with toupper() or tolower() in a C/US locale: i->I and I->i are both wrong. Uppercasing wouldn't work. You have to use Unicode or Latin-5 to manage it.

You misunderstood the parent post. They where suggesting to look up the exact string that ends up in the message, without any conversion. So if the message contains INFO, ERROR, etc. then look up "INFO", "ERROR"...

It's the bug in the Turkish locale. They hacked Latin alphabet instead of creating a separate letter with separate rules.