UTF-8 is not very well supported inside snaps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Medium
|
Unassigned | ||
snapd (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
It seems there can be encoding problems inside snaps.
Example 1:
1. Install the "hello-world" snap.
2. Run "hello-world.sh" (a shell is started).
3. Try to write something with an accented or special character, like "Olá Mundo" or "€".
It doesn't work.
Example 2:
1. Create a simple python script that prints an accented character, like:
#!/usr/bin/env python3
print("Olá Mundo!")
2. Package it in a snap that provides that script as an app.
3. Run that snappy app.
It raises an exception:
Traceback (most recent call last):
File "/snap/
print("Ol\xe1 Mundo!")
UnicodeEncodeError: 'ascii' codec can't encode character '\xe1' in position 2: ordinal not in range(128)
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → sru-2 |
Changed in snapd (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in snapd: | |
status: | Confirmed → Triaged |
no longer affects: | snapcraft |
Changed in snapd: | |
importance: | Undecided → Medium |
Changed in snapd (Ubuntu): | |
importance: | High → Medium |
Can you please attach a snap that shows this to happen?