~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-11 02:22:55 UTC
  • mto: (1711.7.2 win32)
  • mto: This revision was merged to the branch mainline in revision 1796.
  • Revision ID: john@arbash-meinel.com-20060611022255-d65cae68762dca6a
In general, python on win32 needs to use the unicode os api, because bytestream stuff just doesn't work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
 
213
213
def _win32_abspath(path):
214
214
    # Real _nt_abspath doesn't have a problem with a unicode cwd
215
 
    return _nt_abspath(path).replace('\\', '/')
 
215
    return _nt_abspath(unicode(path)).replace('\\', '/')
216
216
 
217
217
 
218
218
def _win32_realpath(path):
219
219
    # Real _nt_realpath doesn't have a problem with a unicode cwd
220
 
    return _nt_realpath(path).replace('\\', '/')
 
220
    return _nt_realpath(unicode(path)).replace('\\', '/')
221
221
 
222
222
 
223
223
def _win32_pathjoin(*args):
225
225
 
226
226
 
227
227
def _win32_normpath(path):
228
 
    return _nt_normpath(path).replace('\\', '/')
 
228
    return _nt_normpath(unicode(path)).replace('\\', '/')
229
229
 
230
230
 
231
231
def _win32_getcwd():