~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-17 20:16:43 UTC
  • mto: This revision was merged to the branch mainline in revision 3560.
  • Revision ID: john@arbash-meinel.com-20080717201643-qrbe6thvki1izwig
Switch from os.name to bzrlib.win32utils.winver.
os.name is always 'nt' for any Windows platform... :(

Show diffs side-by-side

added added

removed removed

Lines of Context:
1198
1198
    global _real_walkdirs_utf8
1199
1199
    if _real_walkdirs_utf8 is None:
1200
1200
        fs_encoding = _fs_enc.upper()
1201
 
        if sys.platform == 'win32' and os.name == 'nt':
 
1201
        if win32utils.winver == 'Windows NT':
1202
1202
            # Win98 doesn't have unicode apis like FindFirstFileW
1203
1203
            # TODO: We possibly could support Win98 by falling back to the
1204
1204
            #       original FindFirstFile, and using TCHAR instead of WCHAR,