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