Message149024
| Author | vstinner |
|---|---|
| Recipients | BreamoreBoy, ezio.melotti, lemburg, pitrou, terry.reedy, vstinner |
| Date | 2011-12-08.12:45:14 |
| SpamBayes Score | 0.0063490593 |
| Marked as misclassified | No |
| Message-id | <1323348315.86.0.370817484237.issue5905@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Oh! I think that I understood the problem: if HAVE_WCSFTIME is not defined, timemodule.c uses strftime(), instead of wcsftime(), encode input format and decode the format. It uses UTF-8 to encode/decode, whereas the right encoding is the locale encoding. Attached patch should fix this issue. @Antoine: Do you have any idea why HAVE_WCSFTIME was not defined? wcsftime() is defined in <wchar.h> on Ubuntu. In configure, it is tested using AC_CHECK_FUNCS(wcsftime) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-12-08 12:45:16 | vstinner | set | recipients: + vstinner, lemburg, terry.reedy, pitrou, ezio.melotti, BreamoreBoy |
| 2011-12-08 12:45:15 | vstinner | set | messageid: <1323348315.86.0.370817484237.issue5905@psf.upfronthosting.co.za> |
| 2011-12-08 12:45:15 | vstinner | link | issue5905 messages |
| 2011-12-08 12:45:15 | vstinner | create | |