view tests/test-i18n.t @ 14377:f90d5641c78b

clone: make default path absolute for all local paths This fixes the default path when cloning local repositories with hg-git, since hg-git cancopy() is false even for local repositories.
author Brendan Cully <brendan@kublai.com>
date Wed, 18 May 2011 23:20:26 -0700
parents f85c9b0fdb32
children d29d31e0fdc3
line wrap: on
line source

Translations are optional:

  $ "$TESTDIR/hghave" gettext || exit 80

Test that translations are compiled and installed correctly.

Default encoding in tests is "ascii" and the translation is encoded
using the "replace" error handler:

  $ LANGUAGE=pt_BR hg tip
  abortado: no repository found in '$TESTTMP' (.hg not found)!
  [255]

Using a more accomodating encoding:

  $ HGENCODING=UTF-8 LANGUAGE=pt_BR hg tip
  abortado: no repository found in '$TESTTMP' (.hg not found)!
  [255]

Different encoding:

  $ HGENCODING=Latin-1 LANGUAGE=pt_BR hg tip
  abortado: no repository found in '$TESTTMP' (.hg not found)!
  [255]