~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-06-30 01:38:26 UTC
  • Revision ID: mbp@sourcefrog.net-20050630013826-518cd32a20a13199
- Cope if locale.getpreferredencoding() returns None
  Reported by Uros Trebec

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
IGNORE_FILENAME = ".bzrignore"
37
37
 
38
38
import locale
39
 
user_encoding = locale.getpreferredencoding()
 
39
user_encoding = locale.getpreferredencoding() or 'ascii'
40
40
del locale
41
41
 
42
42
__copyright__ = "Copyright 2005 Canonical Development Ltd."