Merge ~pieq/bugit/+git/qabro:fix-1806841-urwid-unicode into bugit:master
Proposed by
Pierre Equoy
Status: | Merged |
---|---|
Approved by: | Pierre Equoy |
Approved revision: | c4804d95e73ad7189f33e0f5399e3976ad2a5891 |
Merged at revision: | 3de35054961e7c63f6509fc4be6eed686eae9dd4 |
Proposed branch: | ~pieq/bugit/+git/qabro:fix-1806841-urwid-unicode |
Merge into: | bugit:master |
Diff against target: |
52 lines (+23/-2) 2 files modified
qabro/__version__.py (+1/-1) snap/snapcraft.yaml (+22/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maciej Kisielewski (community) | Approve | ||
Review via email:
|
To post a comment you must log in.
> By default, snap doesn't transmit locale information.
I don't think that's true. Or I'm misinterpreting your statement.
Apps in a snap are given the same locale as available in the calling environment.
Overriding locale is a very bad smell. I think your problem lies in how you use urwid. All strings inside your program should be strings. If you are forced to supply raw bytes to some function, make sure that function knows how to interpret those bytes. If it's poorly written and understands ascii only, then make sure you supply it with such (stripping, or replacing all erroneous chars).