diff options
| author | Gao Qihang <gaoqihang@loongson.cn> | 2025-07-15 11:36:30 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-08-22 13:32:40 +0300 |
| commit | 296c2e7edb9276b1187539b712b901328a4a4647 (patch) | |
| tree | dd7c1786fcbe75fecfa644238d01a7f5aae0653c /MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf | |
| parent | eb3354a49953e1ff35cfcb986e8a959c4c8f1aeb (diff) | |
| download | edk2-296c2e7edb9276b1187539b712b901328a4a4647.tar.xz | |
MdeModulePkg: Simplify PrintInternal function to fit wide character
According to UEFI Spec, only Bit0...6 is valid in mode attribute, other
bits are undefined and must be 0. So attribute with EFI_WIDE_ATTRIBUTE
is unacceptable as EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute() input
parameter. In current PrintInternal function, wide character removed
WIDE_CHAR, and is used as EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString()
input parameter. So, wide character is mistakenly be treated as narrow
character.
Because EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString() can handle unicode
string with NARROW_CHAR and WIDE_CHAR, we can directly invoke
OutputString() with whole unicode string in PrintInternal function instead
of separated wide/narrow string. And then, the logic of computing unicode
string width is also simplified.
Signed-off-by: Gao Qihang <gaoqihang@loongson.cn>
Diffstat (limited to 'MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf')
0 files changed, 0 insertions, 0 deletions
