Message11796
The code in the SO post:
FS_ENCODING = 'ascii'; fn = b('[abc\xff]'); encoded = u('[abc\udcff]')
appears to be testing/expecting that the invalid ascii character '\xff' will be encoded into the invalid unicode string '\udcff'. This is used in CPython to byte-smuggle non-ascii file names through unicode strings.
Jython approaches differently. Versions after 2.7.0 may be able to treat this code more gently.
A much fuller consideration is given in #2340, #2342. Maybe allow one/both of these to supersede this ticket? |
|
Date |
User |
Action |
Args |
2018-03-14 09:08:07 | jeff.allen | set | messageid: <1521018487.71.0.467229070634.issue2424@psf.upfronthosting.co.za> |
2018-03-14 09:08:07 | jeff.allen | set | recipients:
+ jeff.allen, dani_kase |
2018-03-14 09:08:07 | jeff.allen | link | issue2424 messages |
2018-03-14 09:08:07 | jeff.allen | create | |
|