unicode characters break help output

Bug #1555733 reported by Scott Sweeny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Scott Sweeny

Bug Description

It seems some of the help text for snapcraft includes unicode quotation marks which breaks the output of 'snapcraft help'

root@snappy-dev:/home/ubuntu/snapcraft-2.3/snappy# snapcraft help plugins
'ascii' codec can't encode character '\u2019' in position 3253:
ordinal not in range(128)

as well as --help
root@snappy-dev:/home/ubuntu/snapcraft-2.3/snappy# snapcraft --help
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 31, in <module>
    snapcraft.main.main()
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 106, in main
    args = docopt(__doc__, version=_get_version(), options_first=True)
  File "/usr/lib/python3/dist-packages/docopt.py", line 575, in docopt
    extras(help, version, argv, doc)
  File "/usr/lib/python3/dist-packages/docopt.py", line 481, in extras
    print(doc.strip("\n"))
UnicodeEncodeError: 'ascii' codec can't encode character '\u201c' in position 676: ordinal not in range(128)

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
milestone: none → next
assignee: nobody → Scott Sweeny (ssweeny)
importance: Undecided → Medium
status: New → In Progress
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.