]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/redirection: Insert \xFEFF after converting ASCII to Unicode
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 8 Aug 2018 10:15:54 +0000 (18:15 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 16 Aug 2018 08:03:15 +0000 (16:03 +0800)
commitbc0d3e29122df5fe4b71f6ef62e8652ea29fd6a0
treedf1984dd1cbff6d7fcf3fb4b2b90e6f7c75bb608
parent7b85a1afa38c13fd40095f277cd26e5aa159b2f5
ShellPkg/redirection: Insert \xFEFF after converting ASCII to Unicode

When "<a" is used to redirect ASCII file to an application, Shell
core reads the ASCII file and converts the ASCII to Unicode as the
input source of the application.
But per Shell spec, the input source should have \xFEFF to indicate
it's a Unicode stream.
The patch adds the missing \xFEFF.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Application/Shell/FileHandleWrappers.c