diff options
author | Jim_Dailey@Dell.com <Jim_Dailey@Dell.com> | 2016-02-18 22:47:07 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-03-03 12:45:18 +0800 |
commit | d73fc181e722d787581eef7b6dc41b2550236fd8 (patch) | |
tree | 6b491fd386227da4036cf8a6fc95eb7cb74f2b26 /ShellPkg | |
parent | 7bcd3ff611821e9f3f05207ebf157e30d030795b (diff) | |
download | edk2-platforms-d73fc181e722d787581eef7b6dc41b2550236fd8.tar.xz |
ShellPkg: Do not write the UNICODE BOM on ConOut.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jim Dailey <jim_dailey@dell.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/FileHandleWrappers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ShellPkg/Application/Shell/FileHandleWrappers.c b/ShellPkg/Application/Shell/FileHandleWrappers.c index 893e5ffc04..a9117bee92 100644 --- a/ShellPkg/Application/Shell/FileHandleWrappers.c +++ b/ShellPkg/Application/Shell/FileHandleWrappers.c @@ -160,9 +160,11 @@ FileInterfaceStdOutWrite( {
if (ShellInfoObject.ShellInitSettings.BitUnion.Bits.NoConsoleOut) {
return (EFI_UNSUPPORTED);
- } else {
- return (gST->ConOut->OutputString(gST->ConOut, Buffer));
}
+ if (*((CHAR16 *)Buffer) == gUnicodeFileTag) {
+ return (gST->ConOut->OutputString(gST->ConOut, (CHAR16 *)Buffer + 1));
+ }
+ return (gST->ConOut->OutputString(gST->ConOut, Buffer));
}
/**
|