Bug 520773
| Summary: | [ja] /usr/share/yum-cli/callback.py: UnicodeEncodeError: 'ascii' codec can't encode characters | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jens Petersen <petersen> | ||||
| Component: | livecd-tools | Assignee: | David Huff <dhuff> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 12 | CC: | adam.stokes, bruno, dhuff, dueno, ffesti, i18n-bugs, james.antill, Jasper.Hartline, katzj, maxamillion, pmatilai, pnemade, tcpip4000, tim.lauridsen, wtogami | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | livecd-tools-034-7.fc14 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-09-16 03:47:44 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Jens Petersen
2009-09-02 10:25:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Thank you for taking the time to report this bug. Updates to this package have been released since it was first reported. If you have time to update the package and re-test, please do so and report the results here. You can obtain the updated package by typing 'yum update livecd-creator yum' or using the graphical updater, Software Update. --- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers Still happens with livecd-tools-031-1.fc12.1 /usr/share/yum-cli/*.py seem to have confusion handling Unicode in Python. I'll attach a naive patch, which I confirmed fixing the original problem, though I think it might be better to use built-in print() instead of sys.stdout.write(). Created attachment 407956 [details]
patch to fix yum-cli Python unicode handling
is there any progress here? Have you tried yum 3.2.28 from f12-updates? Does it fix it ? No, still happen with yum-3.2.28-3.fc12. Did you apply Ueno-san's above patch? :) Ueno-san, I assume you meant instead of: - sys.stdout.write(msg) + sys.stdout.write(msg.encode(sys.stdout.encoding)) ...you suggest: - sys.stdout.write(msg) + print msg, ...if so then I'd happily accept/apply that patch. (In reply to comment #9) > Ueno-san, I assume you meant instead of: > > - sys.stdout.write(msg) > + sys.stdout.write(msg.encode(sys.stdout.encoding)) > > ...you suggest: > > - sys.stdout.write(msg) > + print msg, > > ...if so then I'd happily accept/apply that patch. Yes, but sorry, I was totally missing the point. livecd-tools should call yum.misc.setup_locale() before using any yum-cli module. I've put an SRPM with the fix on: http://ueno.fedorapeople.org/livecd-tools/livecd-tools-033-4.fc13.src.rpm If it works, I think we can reassign this bug to livecd-tools. Confirmed it by myself and reported to the livecd-tools upstream: http://lists.fedoraproject.org/pipermail/livecd/2010-September/006234.html Reassigning to livecd-tools. This patch (from comment 11) has been committed upstream. livecd-tools-034-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/livecd-tools-034-1.fc14 Is it possible to have a backport for F13 too? Maybe. If 034 works well in F14, I'll probably try testing it an F13. If there is some problem with testing in F13, then I am not sure whether or not I'll have time to work on selective backporting of patches. First things need to work well in F14 though. livecd-tools-034-2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update livecd-tools'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/livecd-tools-034-2.fc14 livecd-tools-034-7.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/livecd-tools-034-7.fc14 livecd-tools-034-7.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update livecd-tools'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/livecd-tools-034-7.fc14 livecd-tools-034-7.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |