snap info word-wraps oddly in the presence of many combining characters

Bug #1997509 reported by Chris Halse Rogers
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Undecided
Unassigned

Bug Description

Given a snap with:
snap/snapcraft.yaml
```
name: workshopper
...
description: |
  Ę̷̡͙̘̔̈́͂͗̓̃͋͐̇̃̽̇̅̚v̸̲̥͕̳̥͙̻͙͕͗͛̈̈̐͋͒͆è̵̳̫͓̗̲̜̜̮͔̣̗̍͑̽̒͐̏̏͐̈́͗̚ȑ̷̢̛̝͇͔͙̾̃́̿̅̇͋̑͘͜y̴͔͚̎̎̓̄̓ț̵̬̑̿̅̈́̌́̄͘ͅh̷͔͔̟͈͙͑̃̊̈͑̋͛̿́̿̃̑͛͘i̶͚̟̼̥͓̹̖͕͎̥̫̦̍n̷̢̬̖̓̐̎̆ͅg̵̻̟̝͕̱̔̑͋̑̋̓̽̏̉̀́̍̀̀ ̴̢̢̡̛͓̞̖̹̲͔̬̪̠͔̮͕̋̾̑͐̀̓̀͑̇͑̓į̵͎̬̯̪̙̦̺͙̜͙̑͌̍͆̒̉͂̌̎͠s̷̛̟̋̓̆̋̑͛̐̓͝͝͝͝ ̴̯̗͍̼̦̖͙̦̔̉́͜c̵̲̼͕͖͙̞̱̬̈́͐̓̈́́͗̓̎̀̒̊̓͘̕ő̵̤̝̩͕̱̦͂͊͒͑̄̋͋͗̅͆̀̋̂͝ń̵̛͉̪̾̍͋͊͋̆̉̕̕s̵̛̗̪͎͈̝͎̪̠̈́̽ȗ̴̲̣̟̯͖͚̫̮̞̙̳͍̮͒̀̈́̍̀̅͐̈́̎̊̃̕͘ḿ̵̙̯̗̳̘̘̖̞͖͇̩͐̿́̌̑́̆͆̏ȅ̸̢͈̱̟̖̬̗̹͇̝̖̞̙̔͠ͅͅd̷̛̺̯̦͕͈̺͇̝̠̖̮͆͗̓̒͑
...
```

`snap info workshopper` will display the description over 5 lines (see attached screenshot).

My guess would be that `snap info` is line-wrapping based on Unicode code points (of which there are *lots*) rather than grapheme clusters (of which there are 22, easily fitting on a line)

Revision history for this message
Chris Halse Rogers (raof) wrote :
Changed in snapd:
status: New → Confirmed
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.