Message 86319 - Python tracker (original) (raw)

Further investigation:

The guy who had this issue may be from Valencia, Spain. According to the manpage for setlocale(3) in my system, the form is usually language[_territory][.codeset][@modifier]. So, in this case, it would make sense for the language to be "ca" (Catalan) and territory "ES" (Spain).

My patch may be fine after all. Because, if at that point the @modifier is still present (I have seen code that removes it before that point), you'd still want to remove it and keep only the "codeset", which is the interesting part.