Skip to content

Commit 9898567

Browse files
GowthamM9974mergify[bot]
authored andcommitted
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>
1 parent 8bd3787 commit 9898567

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

FatPkg/EnhancedFatDxe/Fat.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
gEfiDiskIo2ProtocolGuid ## TO_START
7979
gEfiBlockIoProtocolGuid ## TO_START
8080
gEfiSimpleFileSystemProtocolGuid ## BY_START
81-
gEfiUnicodeCollationProtocolGuid ## TO_START
8281
gEfiUnicodeCollation2ProtocolGuid ## TO_START
8382

8483
[Pcd]

FatPkg/EnhancedFatDxe/UnicodeCollation.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ InitializeUnicodeCollationSupportWorker (
5555
return Status;
5656
}
5757

58-
Iso639Language = (BOOLEAN)(ProtocolGuid == &gEfiUnicodeCollationProtocolGuid);
58+
Iso639Language = (BOOLEAN)(ProtocolGuid == &gEfiUnicodeCollation2ProtocolGuid);
5959
GetEfiGlobalVariable2 (VariableName, (VOID **)&Language, NULL);
6060

6161
ReturnStatus = EFI_UNSUPPORTED;
@@ -134,18 +134,6 @@ InitializeUnicodeCollationSupport (
134134
L"PlatformLang",
135135
(CONST CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultPlatformLang)
136136
);
137-
//
138-
// If the attempt to use Unicode Collation 2 Protocol fails, then we fall back
139-
// on the ISO 639-2 Unicode Collation Protocol.
140-
//
141-
if (EFI_ERROR (Status)) {
142-
Status = InitializeUnicodeCollationSupportWorker (
143-
AgentHandle,
144-
&gEfiUnicodeCollationProtocolGuid,
145-
L"Lang",
146-
(CONST CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultLang)
147-
);
148-
}
149137

150138
return Status;
151139
}

0 commit comments

Comments
 (0)