Message189255
python2.7 can't be compiled with --enable-unicode=no
Because of a crash in the re module. It's a regression from 2.7.3.
$ ./python -c 'import re; re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/amauryfa/python/cpython2.7/Lib/re.py", line 190, in compile
return _compile(pattern, flags)
File "/home/amauryfa/python/cpython2.7/Lib/re.py", line 240, in _compile
p = sre_compile.compile(pattern, flags)
File "/home/amauryfa/python/cpython2.7/Lib/sre_compile.py", line 533, in compile
groupindex, indexgroup
RuntimeError: invalid SRE code
The cause is in sre.h: when Py_USING_UNICODE is false, SRE_CODE is defined as "unsigned long" instead of "unsigned short"!
When this is fixed, the following modules did not compile:
_io _json _sqlite3 _ssl _testcapi
Which modules are supposed to work without unicode? |
|
Date |
User |
Action |
Args |
2013-05-14 23:27:01 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, serhiy.storchaka |
2013-05-14 23:27:00 | amaury.forgeotdarc | set | messageid: <1368574020.99.0.834797445108.issue17979@psf.upfronthosting.co.za> |
2013-05-14 23:27:00 | amaury.forgeotdarc | link | issue17979 messages |
2013-05-14 23:27:00 | amaury.forgeotdarc | create | |
|