43
43
def test_log_C(self):
44
out, err = self.run_bzr_subprocess('--no-aliases', '--no-plugins',
45
'-q', 'log', '--log-format=long', 'tree',
44
out, err = self.run_bzr_subprocess(
45
'--no-aliases --no-plugins log -q --log-format=long tree',
46
46
env_changes={'LANG':'C', 'BZR_PROGRESS_BAR':'none',
47
47
'LC_ALL':None, 'LC_CTYPE':None, 'LANGUAGE':None})
48
48
self.assertEqual('', err)
59
59
def test_log_BOGUS(self):
60
out, err = self.run_bzr_subprocess('--no-aliases', '--no-plugins',
61
'-q', 'log', '--log-format=long', 'tree',
60
out, err = self.run_bzr_subprocess(
61
'--no-aliases --no-plugins log -q --log-format=long tree',
62
62
env_changes={'LANG':'BOGUS', 'BZR_PROGRESS_BAR':'none',
63
63
'LC_ALL':None, 'LC_CTYPE':None, 'LANGUAGE':None})
64
64
# XXX: This depends on the exact formatting of a locale.Error
65
65
# as the first part of the string. It may be a little tempermental
66
66
self.assertEqualDiff("""\
67
67
bzr: warning: unsupported locale setting
68
bzr could not set the application locale.
69
Although this should be no problem for bzr itself,
70
it might cause problems with some plugins.
71
To investigate the issue, look at the output
72
of the locale(1p) tool available on POSIX systems.
73
bzr: warning: unsupported locale setting
68
74
Could not determine what text encoding to use.
69
75
This error usually means your Python interpreter
70
76
doesn't support the locale set by $LANG (BOGUS)