[PATCH] fix "yum --help" with translated "Usage: %s\n". BZ 1033416

James Antill james at fedoraproject.org
Wed Jan 8 15:51:15 UTC 2014

On Wed, 2014-01-08 at 11:01 +0100, Zdenek Pavlas wrote:
> This looks like a giant hack, but IMO it's the best option we have.
> Encoding all command and option descriptions to utf8 is much worse.

 Did you try undoing the _wrapOptParseUsage() stuff to see if that

 Is it worth just re-implementing self.optparser.format_usage() within

 I'm also very tempted to do the hack we did in RHEL-5 and RHEL-6 which
turned off all the translations for RHEL. Not that it solves the
problems, but people won't see the problems in RHEL then.

 If you still think this is the best way, ACK ... although it's probably
worth adding a hasattr() for '_' in optparser, just to be super

More information about the Yum-devel mailing list