Show More
@@ -6,16 +6,16 b' Test alignment of multibyte characters' | |||||
6 | $ cd t |
|
6 | $ cd t | |
7 | $ $PYTHON << EOF |
|
7 | $ $PYTHON << EOF | |
8 | > # (byte, width) = (6, 4) |
|
8 | > # (byte, width) = (6, 4) | |
9 | > s = "\xe7\x9f\xad\xe5\x90\x8d" |
|
9 | > s = b"\xe7\x9f\xad\xe5\x90\x8d" | |
10 | > # (byte, width) = (7, 7): odd width is good for alignment test |
|
10 | > # (byte, width) = (7, 7): odd width is good for alignment test | |
11 | > m = "MIDDLE_" |
|
11 | > m = b"MIDDLE_" | |
12 | > # (byte, width) = (18, 12) |
|
12 | > # (byte, width) = (18, 12) | |
13 | > l = "\xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d" |
|
13 | > l = b"\xe9\x95\xb7\xe3\x81\x84\xe9\x95\xb7\xe3\x81\x84\xe5\x90\x8d\xe5\x89\x8d" | |
14 |
> f = |
|
14 | > f = open('s', 'wb'); f.write(s); f.close() | |
15 |
> f = |
|
15 | > f = open('m', 'wb'); f.write(m); f.close() | |
16 |
> f = |
|
16 | > f = open('l', 'wb'); f.write(l); f.close() | |
17 | > # instant extension to show list of options |
|
17 | > # instant extension to show list of options | |
18 |
> f = |
|
18 | > f = open('showoptlist.py', 'wb'); f.write(b"""# encoding: utf-8 | |
19 | > from mercurial import registrar |
|
19 | > from mercurial import registrar | |
20 | > cmdtable = {} |
|
20 | > cmdtable = {} | |
21 | > command = registrar.command(cmdtable) |
|
21 | > command = registrar.command(cmdtable) |
General Comments 0
You need to be logged in to leave comments.
Login now