Bug 767313

Summary: textwrap is not mutltibyte aware breaks optparse with i18n help strings
Product: Red Hat Enterprise Linux 5 Reporter: Adrian Likins <alikins>
Component: pythonAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8CC: katzj
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-21 05:07:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Adrian Likins 2011-12-13 18:59:42 UTC
Description of problem:
bz #752316 describes a bug in subscription-manager where translated help
messages that are displayed via optparse can break because optparse using
the "textwrap" module to wrap text, and it is not multibyte aware


sample code to reproduce directly with textwrap:



>>> import textwrap
>>> a = "このシステム用に権利があるレポジトリの一覧表示"
>>> print textwrap.fill(a, 40)
このシステム用に権利がある
��ポジトリの一覧表示

Comment 2 RHEL Program Management 2013-03-21 05:07:13 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.