~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Robert Collins
  • Date: 2007-06-04 00:51:54 UTC
  • mfrom: (2504 +trunk)
  • mto: (2507.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2505.
  • Revision ID: robertc@robertcollins.net-20070604005154-yvx2q8jnwiprw6du
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1149
1149
        path-from-top might be unicode or utf8, but it is the correct path to
1150
1150
        pass to os functions to affect the file in question. (such as os.lstat)
1151
1151
    """
1152
 
    fs_encoding = sys.getfilesystemencoding()
 
1152
    fs_encoding = sys.getfilesystemencoding().upper()
1153
1153
    if (sys.platform == 'win32' or
1154
1154
        fs_encoding not in ('UTF-8', 'US-ASCII', 'ANSI_X3.4-1968')): # ascii
1155
1155
        return _walkdirs_unicode_to_utf8(top, prefix=prefix)