Roll back change to previous version. Language should be compared as the exact match.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11398 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2011-03-14 10:25:29 +00:00
parent 4249fa760f
commit 640dfdc31d
1 changed files with 1 additions and 14 deletions

View File

@ -1973,18 +1973,5 @@ HiiCompareLanguage (
// When languages are exactly same, they will be identical.
//
Language2Len = AsciiStrLen (Language2);
if (AsciiStrnCmp (Language2, Language1, Language2Len) == 0) {
return TRUE;
}
//
// When Language1 is the sub tag of Language2, they will also be regarded as identical.
// This is added to support current Shell. Shell string package uses "en" as language name.
// But, it may use platform language "en-US" to get string value.
//
if (AsciiStrStr (Language2, Language1) == Language2) {
return TRUE;
}
return FALSE;
return (BOOLEAN) (AsciiStrnCmp (Language1, Language2, Language2Len) == 0);
}