efi_loader: variables PlatformLang and PlatformLangCodes
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 5 Apr 2019 00:45:21 +0000 (02:45 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Apr 2019 12:17:06 +0000 (14:17 +0200)
commit734d3252af9ceda43fbcfcc088e14911d969cdfc
tree0a4182c27043d4cd057f9b7978ae292cf96f1862
parente301e024e583182a84ef3e8b590aac6576b679d0
efi_loader: variables PlatformLang and PlatformLangCodes

Since TianoCore EDK2 commit d65f2cea36d1 ("ShellPkg/CommandLib: Locate
proper UnicodeCollation instance") in edk2 the UEFI Shell crashes if EFI
variable PlatformLang is not defined.

As this variable is anyway prescribed in the UEFI 2.7 spec let's define it
to L"en-US". Use the same value for PlatformLangCodes that defines the list
of all supported languages.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_setup.c