The bumpversion -h output includes the 'RIGHTWARDS ARROW' (U+2192) unicode character, causing trouble on Windows.
$ bumpversion -h
Traceback (most recent call last):
File "c:\program files\python35\Lib\runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python35\Lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Brecht\.virtualenvs\tox\Scripts\bumpversion.exe\__main__.py", line 9, in <module>
File "c:\users\brecht\.virtualenvs\tox\lib\site-packages\bumpversion\__init__.py", line 879, in main
args = parser3.parse_args(remaining_argv + positionals)
File "c:\program files\python35\Lib\argparse.py", line 1726, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "c:\program files\python35\Lib\argparse.py", line 1758, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "c:\program files\python35\Lib\argparse.py", line 1964, in _parse_known_args
start_index = consume_optional(start_index)
File "c:\program files\python35\Lib\argparse.py", line 1904, in consume_optional
take_action(action, args, option_string)
File "c:\program files\python35\Lib\argparse.py", line 1832, in take_action
action(self, namespace, argument_values, option_string)
File "c:\program files\python35\Lib\argparse.py", line 1016, in __call__
parser.print_help()
File "c:\program files\python35\Lib\argparse.py", line 2358, in print_help
self._print_message(self.format_help(), file)
File "c:\program files\python35\Lib\argparse.py", line 2364, in _print_message
file.write(message)
File "c:\users\brecht\.virtualenvs\tox\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2192' in position 2538: character maps to <undefined>
The
bumpversion -h
output includes the 'RIGHTWARDS ARROW' (U+2192) unicode character, causing trouble on Windows.