Bug 847098
Summary: | [i18n] dnf tracebacks when user input is about to happen under an accented language | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | dominique <chepioq> |
Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | akozumpl, chepioq, jzeleny, yann-libbrecht |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dnf-0.2.8-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-17 22:02:58 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: |
Description
dominique
2012-08-09 17:25:20 UTC
Thanks for the report. I can reproduce it by doing 'export LANG=cs_CZ.ISO8859-2' and then running dnf. The full traceback is: Traceback (most recent call last): File "./bin/dnf", line 35, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/home/akozumpl/dnf/dnf/cli/yummain.py", line 316, in user_main errcode = main(args) File "/home/akozumpl/dnf/dnf/cli/yummain.py", line 224, in main return_code = base.doTransaction() File "/home/akozumpl/dnf/dnf/cli/cli.py", line 530, in doTransaction if self.conf.assumeno or not self.userconfirm(): File "/home/akozumpl/dnf/dnf/cli/output.py", line 967, in userconfirm choice = raw_input(_('Is this ok [y/N]: ')) UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-5: ordinal not in range(128) Also somehow boils down to: [akozumpl@aklap ~]$ python Python 2.7.3 (default, Apr 30 2012, 21:18:11) [GCC 4.7.0 20120416 (Red Hat 4.7.0-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print u'Šířka' Šířka >>> raw_input(u'Šíéřka') Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128) >>> Talking to python maintainer for some insight. Fixed upstream by fe9fd26. dnf-0.2.8-1.git5dea6e7.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/dnf-0.2.8-1.git5dea6e7.fc18 I install and test dnf-0.2.8-1.git5dea6e7.fc18, and for me that seem working well, without traceback. Thank Package dnf-0.2.8-1.git5dea6e7.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.2.8-1.git5dea6e7.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-12583/dnf-0.2.8-1.git5dea6e7.fc18 then log in and leave karma (feedback). dnf-0.2.8-1.git5dea6e7.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |