mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
FatPkg/EnhanceFatDxe:Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUID
EFI_UNICODE_COLLATION_PROTOCOL_GUID was deprecated in favor of a newer version EFI_UNICODE_COLLATION_PROTOCOL2_GUID which provides improved language support and better extensibility. It was officially removed from UEFI specifications 2.10A and 2.11 and should no longer be used in current implementations. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
This commit is contained in:
parent
8bd3787e4b
commit
9898567e2b
2 changed files with 1 additions and 14 deletions
|
|
@ -78,7 +78,6 @@
|
|||
gEfiDiskIo2ProtocolGuid ## TO_START
|
||||
gEfiBlockIoProtocolGuid ## TO_START
|
||||
gEfiSimpleFileSystemProtocolGuid ## BY_START
|
||||
gEfiUnicodeCollationProtocolGuid ## TO_START
|
||||
gEfiUnicodeCollation2ProtocolGuid ## TO_START
|
||||
|
||||
[Pcd]
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ InitializeUnicodeCollationSupportWorker (
|
|||
return Status;
|
||||
}
|
||||
|
||||
Iso639Language = (BOOLEAN)(ProtocolGuid == &gEfiUnicodeCollationProtocolGuid);
|
||||
Iso639Language = (BOOLEAN)(ProtocolGuid == &gEfiUnicodeCollation2ProtocolGuid);
|
||||
GetEfiGlobalVariable2 (VariableName, (VOID **)&Language, NULL);
|
||||
|
||||
ReturnStatus = EFI_UNSUPPORTED;
|
||||
|
|
@ -134,18 +134,6 @@ InitializeUnicodeCollationSupport (
|
|||
L"PlatformLang",
|
||||
(CONST CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultPlatformLang)
|
||||
);
|
||||
//
|
||||
// If the attempt to use Unicode Collation 2 Protocol fails, then we fall back
|
||||
// on the ISO 639-2 Unicode Collation Protocol.
|
||||
//
|
||||
if (EFI_ERROR (Status)) {
|
||||
Status = InitializeUnicodeCollationSupportWorker (
|
||||
AgentHandle,
|
||||
&gEfiUnicodeCollationProtocolGuid,
|
||||
L"Lang",
|
||||
(CONST CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultLang)
|
||||
);
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue