[Bug 261388] sysutils/uefi-edk2-qemu: Fix build with Python 3.9

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 21 Jan 2022 23:11:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261388

--- Comment #3 from Eric Camachat <eric@camachat.org> ---
BaseTools/Source/Python/AutoGen/UniClassObject.py:
codecs.lookup('ucs-2') --> LookupError: unknown encoding: ucs-2
So, change to codecs.lookup('utf-16')

BaseTools/Source/Python/Common/Misc.py:
array.tostring() has been renamed to array.tobytes()
ref. https://docs.python.org/3/library/array.html#array.array.tobytes

Note, the document says "New in version 3.2: tostring() is renamed to tobytes()
for clarity.", but seems pkg.freebsd.org can build it with Python 3.8.

-- 
You are receiving this mail because:
You are on the CC list for the bug.