Changes between Initial Version and Version 1 of Ticket #11622, comment 53


Ignore:
Timestamp:
Jun 16, 2017, 10:32:14 AM (5 years ago)
Author:
Jun Omae
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11622, comment 53

    initial v1  
    44
    55Linux (wide build):
    6 {{{
     6{{{#!pycon
    77Python 2.5.6 (r256:88840, Oct 21 2014, 22:49:55)
    88[GCC 4.8.2] on linux2
    99Type "help", "copyright", "credits" or "license" for more information.
     10>>> import sys
     11>>> hex(sys.maxunicode)
     12'0x10ffff'
    1013>>> parse_arg_list('text=%F3%A0%84%80-%F3%A0%87%AF')
    1114[(u'text', u'\U000e0100-\U000e01ef')]
    1215>>> [hex(ord(c)) for c in parse_arg_list('text=%F3%A0%84%80-%F3%A0%87%AF')[0][1]]
    1316['0xe0100', '0x2d', '0xe01ef']
     17>>> import re
     18>>> re.compile(u'[\U000e0100-\U000e01ef]+', re.U)
     19<_sre.SRE_Pattern object at 0x20cbf30>
    1420}}}
    1521
    1622Windows (narrow build):
    17 {{{
     23{{{#!pycon
    1824Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32
    1925Type "help", "copyright", "credits" or "license" for more information.
     26>>> import sys
     27>>> hex(sys.maxunicode)
     28'0xffff'
    2029>>> from trac.web.api import parse_arg_list
    2130>>> parse_arg_list('text=%F3%A0%84%80-%F3%A0%87%AF')
     
    2332>>> [hex(ord(c)) for c in parse_arg_list('text=%F3%A0%84%80-%F3%A0%87%AF')[0][1]]
    2433['0xdb40', '0xdd00', '0x2d', '0xdb40', '0xddef']
     34>>> import re
     35>>> re.compile(u'[\U000e0100-\U000e01ef]+', re.U)
     36Traceback (most recent call last):
     37  File "<stdin>", line 1, in <module>
     38  File "C:\usr\src\trac\venv\trac-1.0.12\lib\re.py", line 194, in compile
     39    return _compile(pattern, flags)
     40  File "C:\usr\src\trac\venv\trac-1.0.12\lib\re.py", line 251, in _compile
     41    raise error, v # invalid expression
     42sre_constants.error: bad character range
    2543}}}
    2644