iwonbigbro / gsync

RSync for Google Drive - GSync
Other
238 stars 50 forks source link

Latin-1 file names are not supported and throw exceptions. #19

Closed iwonbigbro closed 11 years ago

iwonbigbro commented 11 years ago

DEBUG: UnicodeEncodeError('ascii', u'DEBUG: /home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/drive/init.py:434:stat(): Checking pcache for path: drive://Spreads/Greg. Descripci\xf3n v\xeddeos\n', 161, 162, 'ordinal not in range(128)'): File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/crawler.py", line 150, in run self._walk(srcpath, self._walkCallback, self._dev) File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/crawler.py", line 101, in _walk for d, dirs, files in generator(path): File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/drive/init.py", line 363, in walk if self.isdir(join(top, name)): File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/drive/init.py", line 566, in isdir ent = self.stat(path) File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/drive/init.py", line 434, in stat debug("Checking pcache for path: %s" % path) File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/output.py", line 21, in call self._print(msg, priority) File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/output.py", line 33, in _print self._printFrame(stack[2], msg, indent) File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/output.py", line 40, in _printFrame "DEBUG: %s%s:%d:%s(): %s" % (indent, f, l, fn, msg) File "/home/user/.virtualenvs/lib/python2.7/site-packages/libgsync/output.py", line 25, in _print sys.stdout.write("%s\n" % msg)

Error: 'ascii' codec can't encode character u'\xf3' in position 161: ordinal not in range(128) sent 0 bytes received 0 bytes 0.00 bytes/sec

iwonbigbro commented 11 years ago

Fixed: https://github.com/iwonbigbro/gsync/commit/bc86c96a1eebc0b082e15596ce2082c2a2349e95