Show More
@@ -1799,13 +1799,13 b' such str.lower().' | |||
|
1799 | 1799 | |
|
1800 | 1800 | $ "$PYTHON" <<EOF |
|
1801 | 1801 | > def escape(s): |
|
1802 | > return ''.join('\u%x' % ord(uc) for uc in s.decode('cp932')) | |
|
1802 | > return b''.join(b'\\u%x' % ord(uc) for uc in s.decode('cp932')) | |
|
1803 | 1803 | > # translation of "record" in ja_JP.cp932 |
|
1804 | > upper = "\x8bL\x98^" | |
|
1804 | > upper = b"\x8bL\x98^" | |
|
1805 | 1805 | > # str.lower()-ed section name should be treated as different one |
|
1806 | > lower = "\x8bl\x98^" | |
|
1807 | > with open('ambiguous.py', 'w') as fp: | |
|
1808 | > fp.write("""# ambiguous section names in ja_JP.cp932 | |
|
1806 | > lower = b"\x8bl\x98^" | |
|
1807 | > with open('ambiguous.py', 'wb') as fp: | |
|
1808 | > fp.write(b"""# ambiguous section names in ja_JP.cp932 | |
|
1809 | 1809 | > u'''summary of extension |
|
1810 | 1810 | > |
|
1811 | 1811 | > %s |
@@ -1832,8 +1832,9 b' such str.lower().' | |||
|
1832 | 1832 | > EOF |
|
1833 | 1833 | |
|
1834 | 1834 | $ "$PYTHON" <<EOF | sh |
|
1835 | > upper = "\x8bL\x98^" | |
|
1836 | > print("hg --encoding cp932 help -e ambiguous.%s" % upper) | |
|
1835 | > from mercurial import pycompat | |
|
1836 | > upper = b"\x8bL\x98^" | |
|
1837 | > pycompat.stdout.write(b"hg --encoding cp932 help -e ambiguous.%s\n" % upper) | |
|
1837 | 1838 | > EOF |
|
1838 | 1839 | \x8bL\x98^ (esc) |
|
1839 | 1840 | ---- |
@@ -1842,8 +1843,9 b' such str.lower().' | |||
|
1842 | 1843 | |
|
1843 | 1844 | |
|
1844 | 1845 | $ "$PYTHON" <<EOF | sh |
|
1845 | > lower = "\x8bl\x98^" | |
|
1846 | > print("hg --encoding cp932 help -e ambiguous.%s" % lower) | |
|
1846 | > from mercurial import pycompat | |
|
1847 | > lower = b"\x8bl\x98^" | |
|
1848 | > pycompat.stdout.write(b"hg --encoding cp932 help -e ambiguous.%s\n" % lower) | |
|
1847 | 1849 | > EOF |
|
1848 | 1850 | \x8bl\x98^ (esc) |
|
1849 | 1851 | ---- |
General Comments 0
You need to be logged in to leave comments.
Login now