summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorChris Phillips <chrisp@hp.com>2013-10-18 18:11:52 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-18 18:11:52 +0000
commitabbea36e3ecd725d50b950f0b4a73c3aebf3187f (patch)
treea44cce7c507344cd568fc021ea84939f7b357fc0 /ShellPkg
parent284e034f4f43530e85b38c74322772e669f561d6 (diff)
downloadedk2-abbea36e3ecd725d50b950f0b4a73c3aebf3187f.zip
edk2-abbea36e3ecd725d50b950f0b4a73c3aebf3187f.tar.gz
edk2-abbea36e3ecd725d50b950f0b4a73c3aebf3187f.tar.bz2
ShellPkg: Fixes ‘edit’ command to correctly display ASCII or UNICODE for the file type.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips <chrisp@hp.com> reviewed-by: jaben carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14785 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
index ad50456..23d2610 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
@@ -1,6 +1,7 @@
/** @file
Implements titlebar interface functions.
+ Copyright (c) 2013, Hewlett-Packard Development Company, L.P.
Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -170,6 +171,8 @@ MainTitleBarRefresh (
case FileTypeAscii:
case FileTypeUnicode:
if (FileType == FileTypeAscii){
+ ShellPrintEx (-1,-1, L" ASCII ");
+ } else {
ShellPrintEx (-1,-1, L" UNICODE ");
}
//