~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/EncodingAdapter.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-11 01:57:02 UTC
  • mto: (1711.7.2 win32)
  • mto: This revision was merged to the branch mainline in revision 1796.
  • Revision ID: john@arbash-meinel.com-20060611015702-7313e9016f468377
Adding cp437, which is my default encoding on windows

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
 
102
111
                  , 'message':u'Testing ' + _mu
103
112
                  , 'filename':_russian_test
104
113
                  , 'directory':_russian_test + 'dir'}),
 
114
        ('cp437', 0, {'committer':_erik
 
115
                  , 'message':u'Testing ' + _mu
 
116
                  , 'filename':'file_' + _omega
 
117
                  , 'directory':_epsilon + '_dir'}),
105
118
    ]
106
119
 
107
120
    def adapt(self, test):