mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 14:22:13 +00:00
Use the right encoding for the label in make-images
This prevents the following error: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 26-28: surrogates not allowed
This commit is contained in:
parent
d913ac5c20
commit
0d178e28c5
@ -191,6 +191,7 @@ if __name__ == '__main__':
|
|||||||
if len(sys.argv) != 4:
|
if len(sys.argv) != 4:
|
||||||
usage(1)
|
usage(1)
|
||||||
|
|
||||||
r = Rasterizer(label=sys.argv[1], modir=sys.argv[2],
|
label = os.fsencode(sys.argv[1]).decode('utf-8')
|
||||||
|
r = Rasterizer(label=label, modir=sys.argv[2],
|
||||||
linguas=sys.argv[3])
|
linguas=sys.argv[3])
|
||||||
r.render()
|
r.render()
|
||||||
|
Loading…
Reference in New Issue
Block a user