modwsgi calls setlocale in response to the options 'lang' or 'locale'. This changes the effective locale, but not the corresponding environment variables.
When python initializes, it stores the current locale away, then calls setlocale(LC_ALL, ""), which sets the locale according to the environment (i.e. LC_ALL=POSIX). Then FileSystemDefaultEncoding is set to the effective charset encoding, i.e, ASCII (same as ANSI_X3.4-1968). (see python sources,Python/pythonrun.c, Py_InitializeEx()) Then it restores the locale. Is it possible to set the environment and not only the locale? This should result in the intended filesystemencoding. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
