/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-28 15:15:15 UTC
  • mfrom: (1955.2.5 locale-35392)
  • Revision ID: pqm@pqm.ubuntu.com-20060828151515-6b58331caa7f8d36
(jam) handle when python doesn't understand locale (bug #35392)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""bzr library"""
18
18
 
 
19
from bzrlib.osutils import get_user_encoding
 
20
 
19
21
 
20
22
IGNORE_FILENAME = ".bzrignore"
21
23
 
22
 
import os
23
 
import sys
24
 
if sys.platform == 'darwin':
25
 
    # work around egregious python 2.4 bug
26
 
    sys.platform = 'posix'
27
 
    import locale
28
 
    sys.platform = 'darwin'
29
 
else:
30
 
    import locale
31
 
# XXX: This probably belongs in osutils instead
32
 
user_encoding = locale.getpreferredencoding() or 'ascii'
33
 
del locale
 
24
 
 
25
# XXX: Compatibility. This should probably be deprecated
 
26
user_encoding = get_user_encoding()
 
27
 
34
28
 
35
29
__copyright__ = "Copyright 2005, 2006 Canonical Development Ltd."
36
30