]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellLevel3CommandsLib/Type.c
ShellPkg: Fixes for the ‘type’ command:
authorChris Phillips <chrisp@hp.com>
Fri, 18 Oct 2013 20:53:06 +0000 (20:53 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 18 Oct 2013 20:53:06 +0000 (20:53 +0000)
commita4883d4cb655c887ef527ff51ae363d3ecda633b
tree7e806cb7682f5265f4d707dadd23650457fea5ab
parentc32ad351618b43f9307823d9acb748bc42c58333
ShellPkg: Fixes for the ‘type’ command:
- Better handling to skip byte order mark in Unicode files.
- Only display valid ASCII characters.
- Change to use ShellPrintEx() instead of Print().
- Print each character instead of %s to avoid possible overrun when not NULL terminated.
- Check for ExecutionBreak.

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@14788 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellLevel3CommandsLib/Type.c