Hi Liming,
I think the very general idea is that UEFI spec requires language based
DriverModel protocol members
to always check if the language is supported and return EFI_UNSUPPORTED
otherwise. The procotols
such as ComponentName2, DriverDiagnostics2, etc. usually also publish a member
string
Hi Liming
The IsLanguageSupported() is intended for use in implementations of UEFI
Driver Model protocols. The protocol functions that will likely use this
are ones where the specification requires a language check, such as
EFI_DRIVER_DIAGNOSTIC2_PROTOCOL.RunDiagnostics(). Currently, to check if
Tom:
New API IsLanguageSupported() only supports RFC 4646 language code for the
Unicode string.
If you think ISO 639-2 language code is obsolete, and don't plan to support
it any longer. Please
update IsLanguageSupported() function description to clarify this API for RFC
4646 language
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2100
Add a function that checks if a target language is in the supported
languages list. Refactor UefiLib to use this function where appropriate
internally.
Cc: Michael D Kinney
Cc: Liming Gao
Signed-off-by: Tom Zhao
---