]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg/redirection: Insert \xFEFF for ENV variable redirection
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 9 Aug 2018 03:43:24 +0000 (11:43 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 16 Aug 2018 08:03:16 +0000 (16:03 +0800)
commit52047be0243074f50fab45650f36ae693c93d1b3
tree9c76f0cfb1c0d9dfff8ee3634e3c504c6522f889
parentbc0d3e29122df5fe4b71f6ef62e8652ea29fd6a0
ShellPkg/redirection: Insert \xFEFF for ENV variable redirection

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1080

Per Shell spec 2.2 chapter 3.4.4.2, Unicode file tag should be
inserted in the output from the input redirected variable, to ensure
it looks like a UCS-2 encode file.

The patch fixes this issue.

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