Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support accents in filenames #99

Open
markusb opened this issue Oct 3, 2016 · 0 comments
Open

Does not support accents in filenames #99

markusb opened this issue Oct 3, 2016 · 0 comments

Comments

@markusb
Copy link

markusb commented Oct 3, 2016

I happen to have some filenames with accents 'éàèéöü'. It looks like gsync does not like this and bails out:


...
DEBUG:      sync/:52:_sync(): force_dest_file = False
DEBUG:        sync/file/:193:getPath(): Joining: '/tmp' with u'Concorde/Concorde 2016 pens\xe9es'
DEBUG:        sync/file/:193:getPath(): Joining: '/tmp' with u'Concorde/Concorde 2016 pens\xe9es'
DEBUG:       sync/file/local/:30:getInfo(): Fetching local file metadata: u'/tmp/Concorde/Concorde 2016 pens\xe9es'
DEBUG:       sync/file/local/:61:getInfo(): File not found: u'/tmp/Concorde/Concorde 2016 pens\xe9es'
DEBUG:      sync/:65:_sync(): Defaulting destination directory: u'/tmp/Concorde/Concorde 2016 pens\xe9es'
DEBUG:      sync/:71:_sync(): File not found: u'/tmp/Concorde/Concorde 2016 pens\xe9es'
DEBUG:       sync/file/:347:islocal(): self.__class__.**name** == SyncFileLocal
DEBUG: UnicodeEncodeError('ascii', u'Concorde/Concorde 2016 pens\xe9es\n', 27, 28, 'ordinal not in range(128)'):   File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 150, in run
    self._walk(srcpath, self._walkCallback, self._dev)
  File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 124, in _walk
    self._sync(f)
  File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/__init__.py", line 31, in **call**
    self._sync(path)
  File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/__init__.py", line 184, in _sync
    verbose(relPath)
  File "/usr/local/lib/python2.7/dist-packages/libgsync/output.py", line 21, in __call__
    self._print(msg, priority)
  File "/usr/local/lib/python2.7/dist-packages/libgsync/output.py", line 25, in _print
    sys.stdout.write("%s\n" % msg)

Error: UnicodeEncodeError('ascii', u'Concorde/Concorde 2016 pens\xe9es\n', 27, 28, 'ordinal not in range(128)')
sent 7337814 bytes  received 0 bytes  1301539.48 bytes/sec
DEBUG:  /usr/local/bin/gsync:66:<module>(): Crawlers finished, exiting
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant