diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 47b3118ea7..2c56409072 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -904,12 +904,19 @@ ProcessCommandLine( // like a shell option (which is assumed to be `file-name`). Status = gBS->LocateProtocol ( - &gEfiUnicodeCollationProtocolGuid, + &gEfiUnicodeCollation2ProtocolGuid, NULL, (VOID **) &UnicodeCollation ); if (EFI_ERROR (Status)) { - return Status; + Status = gBS->LocateProtocol ( + &gEfiUnicodeCollationProtocolGuid, + NULL, + (VOID **) &UnicodeCollation + ); + if (EFI_ERROR (Status)) { + return Status; + } } // Set default options