Message72918
I think you should use the locale's encoding to process the data, ie.
either mbstowcs, then Unicode from wchar_t, or decode with the
nl_langinfo(CODESET) encoding. You might have to set the locale before
this can work (which isn't thread-safe), so it might be tricky to implement.
Python already does nl_langinfo at startup, but then restores the
locale. It should probably save the default locale's codeset somewhere,
as C code requires it in many places.
There is also a "system" encoding, but that is UTF-8 independent of the
system. |
|
Date |
User |
Action |
Args |
2008-09-09 21:21:38 | loewis | set | recipients:
+ loewis, ocean-city |
2008-09-09 21:21:38 | loewis | set | messageid: <1220995298.21.0.806512250901.issue3824@psf.upfronthosting.co.za> |
2008-09-09 21:21:37 | loewis | link | issue3824 messages |
2008-09-09 21:21:37 | loewis | create | |
|