|
||
|
||
|
||
|
||
|
||
|
||
otaylor commented 4 years ago | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
otaylor commented 4 years ago And in Python3, this is going to reencode according to the locale encoding - which is what the GLib command line processing expects. So, as long as metadata is UTF-8 and the locale encoding is UTF-8., it will even handle non-ASCII fine, though we only need to do with ASCII. | ||
|
||
|
||
|
||
Newer versions of flatpak (after https://github.com/flatpak/flatpak/commit/116a8b848788c582fb2c8577f1250438b100da25)
verify that the metadata matches ostree commit xa.metadata key. As we
use ostree directly for creating runtimes, we need to add the key
manually here.
I checked the full set of metadata for all Flatpaks and runtimes on my system and they are all ascii-only (and almost everything in the metadata looks inherently ascii only) - so this is probably fine - for Python2, it will give a byte string, and for Python3, it will interpret the data according to the locale's encoding.