Bug 720642

Summary: "LANG=cs_CZ.utf8 satellite-sync -l " broke with UnicodeDecodeError
Product: [Community] Spacewalk Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.4CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-13 09:18:24 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:
Bug Depends On:    
Bug Blocks: 695242    

Description Pavel Studeník 2011-07-12 11:10:55 UTC
Description of problem:
If I try to run "satellite-sync -l" and locale sets up to cs_CZ.utf8, then application broke with exception "UnicodeDecodeError".

Version-Release number of selected component (if applicable):
spacewalk-backend-tools-1.4.39-1.el6.noarch

How reproducible:
allways

Steps to Reproduce:
1. LANG=cs_CZ.utf8 satellite-sync -l
  
Actual results:
'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)

Expected results:


Additional info:

SYNC ERROR: unhandled exception occurred:

Exception reported from <hostname>
Time: Tue Jul 12 05:29:29 2011
Exception type <type 'exceptions.UnicodeDecodeError'>

Exception Handler Information
Traceback (most recent call last):
  File "/usr/bin/satellite-sync", line 138, in main
    return satsync.Runner().main()
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 251, in main
    time.strftime (locale.nl_langinfo(locale.D_T_FMT), time.localtime(timeEnd)), delta_str),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)

Comment 1 Michael Mráka 2011-07-13 09:18:24 UTC

*** This bug has been marked as a duplicate of bug 696970 ***