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

problem with unicode chars in filenames #39

Closed
eratosthene opened this issue Jan 24, 2018 · 1 comment
Closed

problem with unicode chars in filenames #39

eratosthene opened this issue Jan 24, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@eratosthene
Copy link
Owner

eratosthene commented Jan 24, 2018

Copied files over via ssh from Mac. When trying to run sync, get an exception on line 189 when it hits a unicode-named file:

185 for dirpath, dirnames, filenames in os.walk(basepath):
186 if len(filenames)>0:
187 rpath = dirpath[len(basepath+os.sep):].encode(encoding='UTF-8')
188 for filename in filenames:
189 fpath=os.path.join(rpath,filename.encode(encoding='UTF-8'))
190 apath = os.path.join(dirpath.encode(encoding='UTF-8'),filename.encode(encoding='UTF-8'))

@eratosthene
Copy link
Owner Author

Happens on line 187 also? And happens even with files that were synced with the sync process. Exception:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in range(128)

@eratosthene eratosthene self-assigned this Jan 24, 2018
@eratosthene eratosthene added this to the 0.5.5 milestone Jan 24, 2018
eratosthene added a commit that referenced this issue Jan 24, 2018
@eratosthene eratosthene mentioned this issue Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant