ShellPkg/parse: Handle Unicode stream from pipe correctly
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 6 Jun 2017 08:23:33 +0000 (16:23 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 7 Jun 2017 00:51:41 +0000 (08:51 +0800)
commit4e6394455a8a9741dafe2928373db461ef21671e
treee79ad7a83086762b0745499b3c5b19a03d9b9099
parent7bd5a2c81ed5bc52ed63b348fcb1686f1fb5b398
ShellPkg/parse: Handle Unicode stream from pipe correctly

The original code expects the Unicode stream from pipe doesn't
contains the Unicode BOM.
But that's not true.
Commit [9ed21946c76e430097e9c4e59b419af928e0cb8c] changes
CreateFileInterfaceMem() to add the BOM for Unicode stream.

When parse pipe support was firstly added, a private implementation
ParseReturnStdInLine() was created to specially handle
the Unicode stream without BOM. Since now the Unicode steam contains
BOM, the private implementation can be removed and
ShellFileHandleReturnLine() can be used directly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Tapan Shah <tapandshah@hpe.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c