\r
[Packages]\r
MdePkg/MdePkg.dec\r
- FatPkg/FatPkg.dec\r
\r
[LibraryClasses]\r
UefiRuntimeServicesTableLib\r
gEfiUnicodeCollationProtocolGuid\r
gEfiUnicodeCollation2ProtocolGuid\r
\r
-[FeaturePcd]\r
- gEfiFatPkgTokenSpaceGuid.PcdUnicodeCollationSupport\r
- gEfiFatPkgTokenSpaceGuid.PcdUnicodeCollation2Support\r
-\r
[Pcd]\r
gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLang\r
gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLang\r
/**\r
Worker function to initialize Unicode Collation support.\r
\r
- This function searches Initialized Unicode Collation support based on PCDs:\r
- PcdUnicodeCollation2Support and PcdUnicodeCollationSupport.\r
- It first tries to locate Unicode Collation 2 protocol and matches it with current\r
- platform language code. If for any reason the first attempt fails, it then tries to\r
- use Unicode Collation Protocol.\r
+ It tries to locate Unicode Collation (2) protocol and matches it with current\r
+ platform language code.\r
\r
@param AgentHandle The handle used to open Unicode Collation (2) protocol.\r
@param ProtocolGuid The pointer to Unicode Collation (2) protocol GUID.\r
/**\r
Initialize Unicode Collation support.\r
\r
- This function searches Initialized Unicode Collation support based on PCDs:\r
- PcdUnicodeCollation2Support and PcdUnicodeCollationSupport.\r
- It first tries to locate Unicode Collation 2 protocol and matches it with current\r
+ It tries to locate Unicode Collation 2 protocol and matches it with current\r
platform language code. If for any reason the first attempt fails, it then tries to\r
use Unicode Collation Protocol.\r
\r
//\r
// First try to use RFC 4646 Unicode Collation 2 Protocol.\r
//\r
- if (FeaturePcdGet (PcdUnicodeCollation2Support)) {\r
- Status = InitializeUnicodeCollationSupportWorker (\r
- AgentHandle,\r
- &gEfiUnicodeCollation2ProtocolGuid,\r
- L"PlatformLang",\r
- (CONST CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLang)\r
- );\r
- }\r
-\r
+ Status = InitializeUnicodeCollationSupportWorker (\r
+ AgentHandle,\r
+ &gEfiUnicodeCollation2ProtocolGuid,\r
+ L"PlatformLang",\r
+ (CONST CHAR8 *) PcdGetPtr (PcdUefiVariableDefaultPlatformLang)\r
+ );\r
//\r
// If the attempt to use Unicode Collation 2 Protocol fails, then we fall back\r
// on the ISO 639-2 Unicode Collation Protocol.\r
//\r
- if (FeaturePcdGet (PcdUnicodeCollationSupport) && EFI_ERROR (Status)) {\r
+ if (EFI_ERROR (Status)) {\r
Status = InitializeUnicodeCollationSupportWorker (\r
AgentHandle,\r
&gEfiUnicodeCollationProtocolGuid,\r
DEC_VERSION = 0x00010005\r
PACKAGE_NAME = FatPkg\r
PACKAGE_GUID = 8EA68A2C-99CB-4332-85C6-DD5864EAA674\r
-\r
-[PcdsFeatureFlag.common]\r
- gEfiFatPkgTokenSpaceGuid.PcdUnicodeCollationSupport|TRUE|BOOLEAN|0x00010001\r
- gEfiFatPkgTokenSpaceGuid.PcdUnicodeCollation2Support|TRUE|BOOLEAN|0x00010002\r
-\r
-[Guids.common]\r
- gEfiFatPkgTokenSpaceGuid = {0xc8e92dba, 0x1d92, 0x411f, {0xae, 0xa, 0x1d, 0xbe, 0xd8, 0xf1, 0x32, 0x99}}\r
-\r