Discussion:
[edk2] [PATCH] ShellPkg: Fix the Non-ASCII char and do code refine.
Qiu Shumin
2015-06-08 01:35:24 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <***@intel.com>
---
ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
index 687ced6..12fe877 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
@@ -190,7 +190,7 @@ ParseReturnStdInLine (

/**
Handle stings for SFO Output with escape character ^ in a string
- 1. Quotation marks in the string must be escaped by using a ^ character (i.e. ^ᅵ).
+ 1. Quotation marks in the string must be escaped by using a ^ character (i.e. ^").
2. The ^ character may be inserted using ^^.

@param[in] String The Unicode NULL-terminated string.
@@ -290,7 +290,7 @@ PerformParsing(
TempLine = ShellFileHandleReturnLine (FileHandle, &Ascii);
}

- if ((TempLine == NULL) || (*TempLine == CHAR_NULL && StreamingUnicode == TRUE)) {
+ if ((TempLine == NULL) || (*TempLine == CHAR_NULL && StreamingUnicode)) {
break;
}
--
1.9.5.msysgit.1
Carsey, Jaben
2015-06-08 15:01:09 UTC
Permalink
-----Original Message-----
From: Qiu, Shumin
Sent: Sunday, June 07, 2015 6:35 PM
Cc: Carsey, Jaben
Subject: [PATCH] ShellPkg: Fix the Non-ASCII char and do code refine.
Importance: High
Contributed-under: TianoCore Contribution Agreement 1.0
---
ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
b/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
index 687ced6..12fe877 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
@@ -190,7 +190,7 @@ ParseReturnStdInLine (
/**
Handle stings for SFO Output with escape character ^ in a string
- 1. Quotation marks in the string must be escaped by using a ^ character (i.e.
^�).
+ 1. Quotation marks in the string must be escaped by using a ^ character (i.e. ^").
2. The ^ character may be inserted using ^^.
@param[in] String The Unicode NULL-terminated string.
@@ -290,7 +290,7 @@ PerformParsing(
TempLine = ShellFileHandleReturnLine (FileHandle, &Ascii);
}
- if ((TempLine == NULL) || (*TempLine == CHAR_NULL &&
StreamingUnicode == TRUE)) {
+ if ((TempLine == NULL) || (*TempLine == CHAR_NULL &&
StreamingUnicode)) {
break;
}
--
1.9.5.msysgit.1
------------------------------------------------------------------------------
Loading...