~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/EncodingAdapter.py

  • Committer: Robey Pointer
  • Date: 2006-07-01 19:03:33 UTC
  • mfrom: (1829 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: robey@lag.net-20060701190333-f58465aec4bd3412
merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# prefix for micro (1/1000000)
26
26
_mu = u'\xb5'
27
27
 
 
28
# greek letter omega, not to be confused with
 
29
# the Ohm sign, u'\u2126'. Though they are probably identical
 
30
# cp437 can handle the first, but not the second
 
31
_omega = u'\u03a9'
 
32
 
 
33
# smallest error possible, epsilon
 
34
# cp437 handles u03b5, but not u2208 the 'element of' operator
 
35
_epsilon = u'\u03b5'
 
36
 
28
37
# Swedish?
29
38
_erik = u'Erik B\xe5gfors'
30
39
 
39
48
 
40
49
# Russian, 'Alexander' in russian
41
50
_alexander = u'\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440'
42
 
# No idea if this means anything, but we need another string
43
 
_alex = u'\u0410\u043b\u0435\u043a'
 
51
# The word 'test' in Russian
 
52
_russian_test = u'\u0422\u0435\u0441\u0442'
44
53
 
45
54
# Kanji
46
55
# It is a kanji sequence for nihonjin, or Japanese in English.
100
109
                  , 'directory':_something}),
101
110
        ('cp1251', 0, {'committer':_alexander
102
111
                  , 'message':u'Testing ' + _mu
103
 
                  , 'filename':_alex
104
 
                  , 'directory':_alex + 'dir'}),
 
112
                  , 'filename':_russian_test
 
113
                  , 'directory':_russian_test + 'dir'}),
 
114
# The iso-8859-1 tests run on a default windows cp437 installation
 
115
# and it takes a long time to run an extra permutation of the tests
 
116
# But just in case we want to add this back in:
 
117
#        ('cp437', 0, {'committer':_erik
 
118
#                  , 'message':u'Testing ' + _mu
 
119
#                  , 'filename':'file_' + _omega
 
120
#                  , 'directory':_epsilon + '_dir'}),
105
121
    ]
106
122
 
107
123
    def adapt(self, test):