STX fixed for non-ASCII
Bug #120376 reported by
Charlie_X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.structuredtext |
Fix Released
|
Undecided
|
Charlie_X |
Bug Description
It's a long-standing bug that STX does not support non-ASCII which is a real pain for lots of people as STX is quite a nice format. It's also quite easy to fix as noted in the tests: simply use \w rather than string.letters + string.digits and set the UNICODE flag in the regular expressions. I've done this for zope.structured
document.py itself is pretty much a copy & paste job from the Zope 2 implementation. I've also done some cosmetic work on the code which is occasionally unnecessarily brief and cryptic, inconsistent and still using some Python < 2.0 idioms. For the sake of clarity this will be available as a separate diff.
Changed in zope3: | |
status: | New → Won't Fix |
tags: | added: bugday20100424 |
Changed in zope.structuredtext: | |
assignee: | nobody → Charlie_X (charlie) |
assignee: | Charlie_X (charlie) → nobody |
status: | New → Fix Committed |
assignee: | nobody → Charlie_X (charlie) |
To post a comment you must log in.
This patch contains all the necessary changes to the handling of STX formatting to work with non-ASCII characters and the associated tests