~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_locale.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-02-07 04:51:19 UTC
  • mfrom: (5641.2.1 bzr-dev-overview-tweaks)
  • Revision ID: pqm@pqm.ubuntu.com-20110207045119-fn3s8bol0zscqr1p
(spiv) Expand doc/developers/overview.txt a little,
 and fix some formatting nits. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test that bzr handles locales in a reasonable way"""
18
18
 
19
 
import os
20
19
import sys
21
20
 
22
21
from bzrlib import (
44
43
 
45
44
    def test_log_C(self):
46
45
        self.disable_missing_extensions_warning()
 
46
        # C is not necessarily the default locale, so set both LANG and LC_ALL
 
47
        # explicitly because LC_ALL is preferred on (some?) Linux systems but
 
48
        # only LANG is respected on Windows.
47
49
        out, err = self.run_bzr_subprocess(
48
50
            '--no-aliases --no-plugins log -q --log-format=long tree',
49
 
               env_changes={'LANG':'C', 'BZR_PROGRESS_BAR':'none',
50
 
                            'LC_ALL':None, 'LC_CTYPE':None, 'LANGUAGE':None})
 
51
               env_changes={'LANG': 'C', 'BZR_PROGRESS_BAR':'none',
 
52
                            'LC_ALL': 'C', 'LC_CTYPE':None, 'LANGUAGE':None})
51
53
        self.assertEqual('', err)
52
54
        self.assertEqualDiff("""\
53
55
------------------------------------------------------------