Description of problem:
When subscription manager is used with non-ascii character as CLI param, traceback is invoked.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. subscription-manager repos –list (please that - before list is different character!)
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 9, in <module>
load_entry_point('subscription-manager==1.21.10', 'console_scripts', 'subscription-manager')()
File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2667, in main
ret = CLI.main(self)
File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 183, in main
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 378, in main
print(_("cannot parse argument: %s") % arg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 23: ordinal not in range(128)
This requires change to the underlying libraries used for argument parsing that come from base python. Due to RHEL 7 being in Maintenance Support Phase 1, our team will not be able to fix this issue.