[issue9779] argparse.ArgumentParser not support unicode in print help

2016-02-01 Thread Mark Stern
Mark Stern added the comment: This bit me also. For anybody else reading this, argparsenobug.py includes a class that provides a workaround. python argparsebug.py --help works, but: python argparsebug.py --help > python argparsebug.py --help | more give the error. However: python

[issue9779] argparse.ArgumentParser not support unicode in print help

2016-02-01 Thread Mark Stern
Mark Stern added the comment: And here is the source code with the workaround class -- Added file: http://bugs.python.org/file41775/argparsenobug.py ___ Python tracker

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-11-01 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Closing as invalid, as to me this looks like a classic terminal encoding issue and not an argparse issue, and there was no response from the user who filed the issue. If someone still thinks this is an argparse issue, please provide a

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-09-13 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Are you sure this is an argparse issue, and not a terminal issue? Here's what I see: parser = argparse.ArgumentParser(description=u'Rus Рус') print(parser.description) Rus Рус sys.stderr.write(parser.description) Traceback (most

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-09-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do the docs say this should be supported? I’m a die-hard unicode user, but this treads the line between fix and feature, so if the docs don’t restrict help to str, this could be fixed, otherwise we’re out of luck for the 2.x series.

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-09-07 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9779 ___ ___ Python-bugs-list

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-09-05 Thread gkraser
New submission from gkraser gkra...@gmail.com: argparse.ArgumentParser not support unicode in print help. Example: # -*- coding: utf-8 -*- import argparse import unittest class Test1(unittest.TestCase): def test_unicode_desc(self): h = u'Rus Рус' # unicode print h