~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

[merge] bzr.dev 1491

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                  '_darcs',
64
64
                  'aclocal.m4',
65
65
                  'autom4te*',
66
 
                  'config.guess',
67
66
                  'config.h',
68
67
                  'config.h.in',
69
68
                  'config.log',
70
69
                  'config.status',
71
70
                  'config.sub',
72
 
                  'configure.in',
73
71
                  'stamp-h',
74
72
                  'stamp-h.in',
75
73
                  'stamp-h1',
79
77
IGNORE_FILENAME = ".bzrignore"
80
78
 
81
79
import os
82
 
import locale
 
80
import sys
 
81
if sys.platform == 'darwin':
 
82
    # work around egregious python 2.4 bug
 
83
    sys.platform = 'posix'
 
84
    import locale
 
85
    sys.platform = 'darwin'
 
86
else:
 
87
    import locale
83
88
user_encoding = locale.getpreferredencoding() or 'ascii'
84
89
del locale
85
90