I can init from TBZR in "あいう" (Japanese, my codepage). But I can't init in '天龙' (not in my codepage)
Following 2 patches fix it:
1. tbzrlib/vcspath.py @@ -82,7 +82,7 @@ # *sob* - I can't make stat() give me a float on Windows, even # after calling os.stat_float_times(True) self._attr, ctime, atime, self._mtime, size = \ - win32file.GetFileAttributesEx(self.path) + win32file.GetFileAttributesExW(self.path) except (win32file.error, os.error): self._attr = None self._mtime = None
2. bzrlib/win32util.py
def set_file_attr_hidden(path): """Set file attributes to hidden if possible""" if has_win32file: - win32file.SetFileAttributes(path, win32file.FILE_ATTRIBUTE_HIDDEN) + win32file.SetFileAttributesW(path, win32file.FILE_ATTRIBUTE_HIDDEN)
-- Naoki INADA <email address hidden>
I can init from TBZR in "あいう" (Japanese, my codepage).
But I can't init in '天龙' (not in my codepage)
Following 2 patches fix it:
1. tbzrlib/vcspath.py float_times( True)
self. _attr, ctime, atime, self._mtime, size = \ GetFileAttribut esEx(self. path) GetFileAttribut esExW(self. path)
self. _attr = None
self. _mtime = None
@@ -82,7 +82,7 @@
# *sob* - I can't make stat() give me a float on Windows, even
# after calling os.stat_
- win32file.
+ win32file.
except (win32file.error, os.error):
2. bzrlib/win32util.py
def set_file_ attr_hidden( path): SetFileAttribut es(path, win32file. FILE_ATTRIBUTE_ HIDDEN) SetFileAttribut esW(path, win32file. FILE_ATTRIBUTE_ HIDDEN)
"""Set file attributes to hidden if possible"""
if has_win32file:
- win32file.
+ win32file.
--
Naoki INADA <email address hidden>