Message149656
| Author |
vstinner |
| Recipients |
ezio.melotti, vstinner |
| Date |
2011年12月17日.03:53:40 |
| SpamBayes Score |
1.8520045e-07 |
| Marked as misclassified |
No |
| Message-id |
<1324094022.4.0.746327138354.issue13617@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The curses module (only since Python 3.3), locale.strcoll(), locale.strxfrm(), time.strftime() and imp.NullImporter() (only on Windows) accept embedded null characters, whereas they convert the Unicode string to a wide character (wchar_t*) string.
The problem is that the null character truncates the string. Example:
>>> locale.strxfrm('a')
'a'
>>> locale.strxfrm('a0円b')
'a'
Attached patch fixes these functions. I wrote the patch for Python 3.3. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月17日 03:53:42 | vstinner | set | recipients:
+ vstinner, ezio.melotti |
| 2011年12月17日 03:53:42 | vstinner | set | messageid: <1324094022.4.0.746327138354.issue13617@psf.upfronthosting.co.za> |
| 2011年12月17日 03:53:41 | vstinner | link | issue13617 messages |
| 2011年12月17日 03:53:41 | vstinner | create |
|