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

Unicode in filenames makes the program crash #113

Open
noiob opened this issue Apr 22, 2023 · 2 comments
Open

Unicode in filenames makes the program crash #113

noiob opened this issue Apr 22, 2023 · 2 comments

Comments

@noiob
Copy link

noiob commented Apr 22, 2023

Traceback (most recent call last):
  File "main.py", line 374, in <module>
    main()
  File "main.py", line 371, in main
    interpret(cmd, arguments, parts, shorthands, args.outputdir)
  File "main.py", line 109, in interpret
    print(utils.tree_folder(part.lost))
  File "/usr/lib/pypy3/lib-python/3/encodings/ascii.py", line 22, in encode
    return codecs.ascii_encode(input, self.errors)[0]
UnicodeEncodeError: 'ascii' codec can't encode character '\xc4' in position 1175448: ordinal not in range(128)
> tikzplot 1
Rebuilding partition...
Done
Traceback (most recent call last):
  File "main.py", line 374, in <module>
    main()
  File "main.py", line 371, in main
    interpret(cmd, arguments, parts, shorthands, args.outputdir)
  File "main.py", line 161, in interpret
    print(utils.tikz_part(part))
  File "/usr/lib/pypy3/lib-python/3/encodings/ascii.py", line 22, in encode
    return codecs.ascii_encode(input, self.errors)[0]
UnicodeEncodeError: 'ascii' codec can't encode character '\xc4' in position 1688693: ordinal not in range(128)
@Lazza
Copy link
Owner

Lazza commented May 14, 2023

Have you tried with the standard Python instead of Pypy3? Does the same error occur?

@noiob
Copy link
Author

noiob commented May 14, 2023

I haven't, it didn't occur to me at the time. I can see if I can create a minimal iso reproducing the error

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