/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/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-06 23:17:09 UTC
  • mfrom: (1711.2.34 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060606231709-6d3f204cbe17b4c6
bug 41183, Olaf Conradi: on some platforms getfilesystemencoding() returns None, we should default to something more sane.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
    # choke on a Unicode string containing a relative path if
193
193
    # os.getcwd() returns a non-sys.getdefaultencoding()-encoded
194
194
    # string.
195
 
    _fs_enc = sys.getfilesystemencoding()
 
195
    _fs_enc = sys.getfilesystemencoding() or 'ascii'
196
196
    def abspath(path):
197
197
        return os.path.abspath(path.encode(_fs_enc)).decode(_fs_enc)
198
198