Description of problem: When downloading a package from koji (for example), if using a full path with accentued chars, dnf crashes. Version-Release number of selected component (if applicable): dnf-0.6.2-1.fc21.noarch How reproducible: Always Steps to Reproduce: 1.LANG=C dnf update /home/xxx/Téléchargements/a_package.rpm Actual results: # LANG=C dnf update /home/xxx/Téléchargements/*.rpm Traceback (most recent call last): File "/bin/dnf", line 36, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 115, in _main cli.configure(map(ucd, args)) File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 130, in ucd return unicode(str(obj), _guess_encoding()) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)
Hi, thanks for the report. It could give better message and correctly ends with error code instead of traceback. Heldwin, did you do that accidentally or you wanted to achieve something by setting locale to ASCII chars only and put inside non-ASCII chars?
My system is in french (fr_CH), and used that command to get an english output of dnf. So, it is mid-way accidentally and not accidentally. Accidentally, for having an accentued character in the path, and not accidentally, because it is easier to get help when we switch output to english with LANG=C. If I put the local rpm in a path that doesn't have an accentued char, it doesn't give that traceback and the command end correctly.
*** This bug has been marked as a duplicate of bug 1155877 ***