Show More
@@ -29,30 +29,31 b' HGENCODING=latin-1 hg branch `cat latin-' | |||||
29 | HGENCODING=latin-1 hg ci -d "1000000 0" -m 'latin1 branch' |
|
29 | HGENCODING=latin-1 hg ci -d "1000000 0" -m 'latin1 branch' | |
30 | rm .hg/branch |
|
30 | rm .hg/branch | |
31 |
|
31 | |||
32 | echo % ascii |
|
32 | echo "% hg log (ascii)" | |
33 | hg --encoding ascii log |
|
33 | hg --encoding ascii log | |
34 | echo % latin-1 |
|
34 | echo "% hg log (latin-1)" | |
35 | hg --encoding latin-1 log |
|
35 | hg --encoding latin-1 log | |
36 | echo % utf-8 |
|
36 | echo "% hg log (utf-8)" | |
37 | hg --encoding utf-8 log |
|
37 | hg --encoding utf-8 log | |
38 | echo % ascii |
|
38 | echo "% hg tags (ascii)" | |
39 | HGENCODING=ascii hg tags |
|
39 | HGENCODING=ascii hg tags | |
40 | echo % latin-1 |
|
40 | echo "% hg tags (latin-1)" | |
41 | HGENCODING=latin-1 hg tags |
|
41 | HGENCODING=latin-1 hg tags | |
42 | echo % utf-8 |
|
42 | echo "% hg tags (utf-8)" | |
43 | HGENCODING=utf-8 hg tags |
|
43 | HGENCODING=utf-8 hg tags | |
44 | echo % ascii |
|
44 | echo "% hg branches (ascii)" | |
45 | HGENCODING=ascii hg branches |
|
45 | HGENCODING=ascii hg branches | |
46 | echo % latin-1 |
|
46 | echo "% hg branches (latin-1)" | |
47 | HGENCODING=latin-1 hg branches |
|
47 | HGENCODING=latin-1 hg branches | |
48 | echo % utf-8 |
|
48 | echo "% hg branches (utf-8)" | |
49 | HGENCODING=utf-8 hg branches |
|
49 | HGENCODING=utf-8 hg branches | |
50 |
|
50 | |||
51 | echo '[ui]' >> .hg/hgrc |
|
51 | echo '[ui]' >> .hg/hgrc | |
52 | echo 'fallbackencoding = koi8-r' >> .hg/hgrc |
|
52 | echo 'fallbackencoding = koi8-r' >> .hg/hgrc | |
53 | echo % utf-8 |
|
53 | echo "% hg log (utf-8)" | |
54 | HGENCODING=utf-8 hg log |
|
54 | HGENCODING=utf-8 hg log | |
55 |
|
55 | |||
|
56 | echo "% hg log (dolphin)" | |||
56 | HGENCODING=dolphin hg log |
|
57 | HGENCODING=dolphin hg log | |
57 |
|
58 | |||
58 | HGENCODING=ascii hg branch `cat latin-1-tag` |
|
59 | HGENCODING=ascii hg branch `cat latin-1-tag` |
@@ -14,7 +14,7 b' rollback completed' | |||||
14 | abort: decoding near ' encoded: �': 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)! |
|
14 | abort: decoding near ' encoded: �': 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)! | |
15 | % these should work |
|
15 | % these should work | |
16 | marked working directory as branch � |
|
16 | marked working directory as branch � | |
17 | % ascii |
|
17 | % hg log (ascii) | |
18 | changeset: 5:db5520b4645f |
|
18 | changeset: 5:db5520b4645f | |
19 | branch: ? |
|
19 | branch: ? | |
20 | tag: tip |
|
20 | tag: tip | |
@@ -48,7 +48,7 b' user: test' | |||||
48 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
48 | date: Mon Jan 12 13:46:40 1970 +0000 | |
49 | summary: latin-1 e': ? = u'\xe9' |
|
49 | summary: latin-1 e': ? = u'\xe9' | |
50 |
|
50 | |||
51 | % latin-1 |
|
51 | % hg log (latin-1) | |
52 | changeset: 5:db5520b4645f |
|
52 | changeset: 5:db5520b4645f | |
53 | branch: � |
|
53 | branch: � | |
54 | tag: tip |
|
54 | tag: tip | |
@@ -82,7 +82,7 b' user: test' | |||||
82 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
82 | date: Mon Jan 12 13:46:40 1970 +0000 | |
83 | summary: latin-1 e': � = u'\xe9' |
|
83 | summary: latin-1 e': � = u'\xe9' | |
84 |
|
84 | |||
85 | % utf-8 |
|
85 | % hg log (utf-8) | |
86 | changeset: 5:db5520b4645f |
|
86 | changeset: 5:db5520b4645f | |
87 | branch: é |
|
87 | branch: é | |
88 | tag: tip |
|
88 | tag: tip | |
@@ -116,25 +116,25 b' user: test' | |||||
116 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
116 | date: Mon Jan 12 13:46:40 1970 +0000 | |
117 | summary: latin-1 e': é = u'\xe9' |
|
117 | summary: latin-1 e': é = u'\xe9' | |
118 |
|
118 | |||
119 | % ascii |
|
119 | % hg tags (ascii) | |
120 | tip 5:db5520b4645f |
|
120 | tip 5:db5520b4645f | |
121 | ? 3:770b9b11621d |
|
121 | ? 3:770b9b11621d | |
122 | % latin-1 |
|
122 | % hg tags (latin-1) | |
123 | tip 5:db5520b4645f |
|
123 | tip 5:db5520b4645f | |
124 | � 3:770b9b11621d |
|
124 | � 3:770b9b11621d | |
125 | % utf-8 |
|
125 | % hg tags (utf-8) | |
126 | tip 5:db5520b4645f |
|
126 | tip 5:db5520b4645f | |
127 | é 3:770b9b11621d |
|
127 | é 3:770b9b11621d | |
128 | % ascii |
|
128 | % hg branches (ascii) | |
129 | ? 5:db5520b4645f |
|
129 | ? 5:db5520b4645f | |
130 | default 4:9cff3c980b58 (inactive) |
|
130 | default 4:9cff3c980b58 (inactive) | |
131 | % latin-1 |
|
131 | % hg branches (latin-1) | |
132 | � 5:db5520b4645f |
|
132 | � 5:db5520b4645f | |
133 | default 4:9cff3c980b58 (inactive) |
|
133 | default 4:9cff3c980b58 (inactive) | |
134 | % utf-8 |
|
134 | % hg branches (utf-8) | |
135 | é 5:db5520b4645f |
|
135 | é 5:db5520b4645f | |
136 | default 4:9cff3c980b58 (inactive) |
|
136 | default 4:9cff3c980b58 (inactive) | |
137 | % utf-8 |
|
137 | % hg log (utf-8) | |
138 | changeset: 5:db5520b4645f |
|
138 | changeset: 5:db5520b4645f | |
139 | branch: é |
|
139 | branch: é | |
140 | tag: tip |
|
140 | tag: tip | |
@@ -168,6 +168,7 b' user: test' | |||||
168 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
168 | date: Mon Jan 12 13:46:40 1970 +0000 | |
169 | summary: latin-1 e': И = u'\xe9' |
|
169 | summary: latin-1 e': И = u'\xe9' | |
170 |
|
170 | |||
|
171 | % hg log (dolphin) | |||
171 | abort: unknown encoding: dolphin, please check your locale settings |
|
172 | abort: unknown encoding: dolphin, please check your locale settings | |
172 | abort: decoding near '�': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! |
|
173 | abort: decoding near '�': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! | |
173 | abort: branch name not in UTF-8! |
|
174 | abort: branch name not in UTF-8! |
General Comments 0
You need to be logged in to leave comments.
Login now