edk2/MdeModulePkg/Library/CustomizedDisplayLib
Gao Qihang 296c2e7edb 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>
2025-08-22 10:32:40 +00:00
..
Colors.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CustomizedDisplayLib.c MdeModulePkg: Fix typos in CustomizedDisplayLib 2025-05-26 09:04:17 +08:00
CustomizedDisplayLib.inf MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
CustomizedDisplayLib.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
CustomizedDisplayLibInternal.c MdeModulePkg: Simplify PrintInternal function to fit wide character 2025-08-22 10:32:40 +00:00
CustomizedDisplayLibInternal.h MdeModulePkg: Fix typos in CustomizedDisplayLib 2025-05-26 09:04:17 +08:00
CustomizedDisplayLibModStrs.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00