Mercurial > hg
comparison tests/test-i18n.t @ 14914:41c3a71c318d stable
dispatch: avoid double backslashes in error message
The use of %r in the format string caused Python to display Windows paths with
double backslashes.
author | David Golub <davidg@fogcreek.com> |
---|---|
date | Thu, 21 Jul 2011 16:02:34 -0400 |
parents | d29d31e0fdc3 |
children | 56848e2bb0c5 |
comparison
equal
deleted
inserted
replaced
14903:a934b9249574 | 14914:41c3a71c318d |
---|---|
6 | 6 |
7 Default encoding in tests is "ascii" and the translation is encoded | 7 Default encoding in tests is "ascii" and the translation is encoded |
8 using the "replace" error handler: | 8 using the "replace" error handler: |
9 | 9 |
10 $ LANGUAGE=pt_BR hg tip | 10 $ LANGUAGE=pt_BR hg tip |
11 abortado: n?o foi encontrado um reposit?rio em '$TESTTMP' (.hg n?o encontrado)! | 11 abortado: no repository found in '$TESTTMP' (.hg not found)! |
12 [255] | 12 [255] |
13 | 13 |
14 Using a more accomodating encoding: | 14 Using a more accomodating encoding: |
15 | 15 |
16 $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip | 16 $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip |
17 abortado: n\xc3\xa3o foi encontrado um reposit\xc3\xb3rio em '$TESTTMP' (.hg n\xc3\xa3o encontrado)! (esc) | 17 abortado: no repository found in '$TESTTMP' (.hg not found)! |
18 [255] | 18 [255] |
19 | 19 |
20 Different encoding: | 20 Different encoding: |
21 | 21 |
22 $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip | 22 $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip |
23 abortado: n\xe3o foi encontrado um reposit\xf3rio em '$TESTTMP' (.hg n\xe3o encontrado)! (esc) | 23 abortado: no repository found in '$TESTTMP' (.hg not found)! |
24 [255] | 24 [255] |