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

UnicodeEncodeError #121

Open
atanasterziyski opened this issue Oct 15, 2014 · 2 comments
Open

UnicodeEncodeError #121

atanasterziyski opened this issue Oct 15, 2014 · 2 comments

Comments

@atanasterziyski
Copy link

I am happily using attic 0.13 mostly on FreeBSD systems, however these days I found a weird problem while extracting files (see below). Seems attic cannot extract filenames in Cyrillic, but still no problems with creating or checking the repository with such files. Any clue in which direction I should solve the problem... or at leas temporal workaround?

Traceback (most recent call last):
File "/usr/local/bin/attic", line 3, in
main()
File "/usr/local/lib/python3.3/site-packages/attic/archiver.py", line 715, in main
exit_code = archiver.run(sys.argv[1:])
File "/usr/local/lib/python3.3/site-packages/attic/archiver.py", line 705, in run
return args.func(args)
File "/usr/local/lib/python3.3/site-packages/attic/archiver.py", line 208, in do_extract
archive.extract_item(item)
File "/usr/local/lib/python3.3/site-packages/attic/archive.py", line 237, in extract_item
st = os.lstat(path)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 21-26: ordinal not in range(128)

@atanasterziyski
Copy link
Author

export LANG=en_US.UTF-8

this solved the problem, all credits go to Vedrin :)

@ThomasWaldmann
Copy link
Contributor

create FAQ item and close?

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

2 participants