diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-27 07:12:20 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-27 07:12:20 +0000 |
commit | d357145fca78f3ec36c477ca47606deb3bf60004 (patch) | |
tree | 83a5e6707cc0ed541e6347877211ffe77f6eb901 /IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c | |
parent | 72399daee45430942ac39d5807c96f544a09d9dc (diff) | |
download | edk2-platforms-d357145fca78f3ec36c477ca47606deb3bf60004.tar.xz |
improve platformlangcodes/langcodes and platformlang/lang autoupdate mechanism.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8185 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c index 73207cc718..10bbf74294 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c @@ -156,7 +156,6 @@ FrontPageCallback ( CHAR8 *LanguageString;
CHAR8 *LangCode;
CHAR8 *Lang;
- CHAR8 OldLang[ISO_639_2_ENTRY_SIZE];
UINTN Index;
EFI_STATUS Status;
CHAR8 *PlatformSupportedLanguages;
@@ -230,25 +229,11 @@ FrontPageCallback ( AsciiStrSize (BestLanguage),
Lang
);
-
- if (!FeaturePcdGet (PcdUefiVariableDefaultLangDeprecate)) {
- //
- // Set UEFI deprecated variable "Lang" for backwards compatibility
- //
- Status = ConvertRfc3066LanguageToIso639Language (BestLanguage, OldLang);
- if (!EFI_ERROR (Status)) {
- Status = gRT->SetVariable (
- L"Lang",
- &gEfiGlobalVariableGuid,
- EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
- ISO_639_2_ENTRY_SIZE,
- OldLang
- );
- }
- }
FreePool (BestLanguage);
+ } else {
+ ASSERT (FALSE);
}
-
+
FreePool (PlatformSupportedLanguages);
FreePool (Lang);
FreePool (LanguageString);
|