It appears that this is related to an upstream Python bug (http://bugs.python.org/issue6895). There is a patch for it. The problem is that the serbian locale doesn't have encoding information in it's name (instead of "sr_RS.UTF-8" it's just "sr_RS"), and _parse_localename() function doesn't accept that.
It appears that this is related to an upstream Python bug (http:// bugs.python. org/issue6895). There is a patch for it. The problem is that the serbian locale doesn't have encoding information in it's name (instead of "sr_RS.UTF-8" it's just "sr_RS"), and _parse_localename() function doesn't accept that.