Bug 448788
| Summary: | LANG="" repodiff can create unicode errors | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jesse Keating <jkeating> |
| Component: | yum-utils | Assignee: | Seth Vidal <skvidal> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | dcantrell, james.antill, pmatilai, tim.lauridsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-06-03 19:07:54 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: | |||
Jesse, please test if this one is working better. http://devel.linux.duke.edu/gitweb/?p=yum-utils.git;a=blob_plain;f=repodiff.py;hb=9f23ddc1681ef1b9cc74a97fa90f5c76f3d3c00f As stated on list, forcing LANG=C is probably a bad thing here. Yes, try this one instead http://devel.linux.duke.edu/gitweb/?p=yum-utils.git;a=blob;f=repodiff.py;h=0062116c8e2cc539173164b64a5e0554ad2154d8;hb=c4b79765922a614adddce54615e15144d2cb4332 This one is even better :) http://devel.linux.duke.edu/gitweb/?p=yum-utils.git;a=blob_plain;f=repodiff.py;hb=47ca95c29fe4fd6b2d74e8ad9be83264385e5c0a Jesse, just let me know, if the latest version work for you. Yes, the revision in comment #4 works. thanks, i will put out a new yum-utils version soon including this one |
LANG="" repodiff --old=file:///mnt/koji/mash/rawhide-20080527/development/source/SRPMS/ --new=file:///mnt/koji/mash/rawhide-20080528/development/source/SRPMS/ kdeutils-4.0.80-1.fc10 ---------------------- * Mon May 26 18:00:00 2008 Than Ngo <than> 4.0.80-1 - 4.1 beta1 Traceback (most recent call last): File "/usr/bin/repodiff", line 227, in <module> main(sys.argv[1:]) File "/usr/bin/repodiff", line 211, in main print msg UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 236: ordinal not in range(128) Calling it with LANG=en_US works. This comes about because cron doesn't set a LANG when it runs, so anytime repodiff is ran via cron you can get a traceback.