Bug 1152732
| Summary: | dnf crashes when using accentued chars in path and LANG=C | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Heldwin <heldwin> |
| Component: | dnf | Assignee: | Honza Silhan <jsilhan> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 21 | CC: | akozumpl, heldwin, jsilhan, mluscon, pnemade, rholy, tim.lauridsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-09 16:06:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 *** |
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)