[issue7643] What is an ASCII linebreak?
report at bugs.python.org
Sun Jan 10 01:45:30 CET 2010
Florent Xicluna <laxyf at yahoo.fr> added the comment:
Here is draft of the patch to do what is proposed by Marc André on msg97440 (add VT and FF).
Additionnally I upgraded the UCD 5.1 -> 5.2.
The implementation uses field 16 as defined in "py3k" implementation of "makeunicodedata.py". It should minimize differences between Py2 and Py3 implementations.
Documentation and tests are missing.
I can provide a "diff.gz" containing "Modules/unicodedata_db.h", "Modules/unicodename_db.h" and "Objects/unicodetype_db.h", if needed.
- /* Returns 1 for Unicode characters having the category 'Zl',
- * 'Zp' or type 'B', 0 otherwise.
+ /* Returns 1 for Unicode characters having the line break
+ * property 'BK', 'CR', 'LF' or 'NL' or having bidirectional
+ * type 'B', 0 otherwise.
Note: the "remove_deprecation" should be applied before to remove "-3" warnings.
Added file: http://bugs.python.org/file15807/issue7643_use_LineBreak.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list