~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Martin Packman
  • Date: 2011-12-09 17:11:42 UTC
  • mto: This revision was merged to the branch mainline in revision 6367.
  • Revision ID: martin.packman@canonical.com-20111209171142-u99ahy3pnwc8p06e
Add mechanism for changing Py_FileSystemDefaultEncoding with ctypes

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
 
65
65
import bzrlib
66
 
from bzrlib import symbol_versioning
 
66
from bzrlib import symbol_versioning, _fs_enc
67
67
 
68
68
 
69
69
# Cross platform wall-clock time functionality with decent resolution.
293
293
# choke on a Unicode string containing a relative path if
294
294
# os.getcwd() returns a non-sys.getdefaultencoding()-encoded
295
295
# string.
296
 
_fs_enc = sys.getfilesystemencoding() or 'utf-8'
297
296
def _posix_abspath(path):
298
297
    # jam 20060426 rather than encoding to fsencoding
299
298
    # copy posixpath.abspath, but use os.getcwdu instead