Bug 767313 - textwrap is not mutltibyte aware breaks optparse with i18n help strings
Summary: textwrap is not mutltibyte aware breaks optparse with i18n help strings
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python
Version: 5.8
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Dave Malcolm
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-13 18:59 UTC by Adrian Likins
Modified: 2013-03-21 05:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-21 05:07:13 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.