diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-05-10 17:46:23 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 09:32:52 +0800 |
commit | 929802742646fa73a8f495eb5fd63545f2d9cf10 (patch) | |
tree | c473691a692aca0cb04abeb0bf01339d35f0658f /BaseTools | |
parent | b81734528981c2104c14fbb91285f7449651f718 (diff) | |
download | edk2-929802742646fa73a8f495eb5fd63545f2d9cf10.tar.gz |
BaseTools: fix a bug for uni file \x####\ format handling
It should start from the last '\x' position + 1 to find next '\x'
character.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit ad319b9307aaf37ffaf27890ae03dcbfd12087ce)
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/UniClassObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/UniClassObject.py b/BaseTools/Source/Python/AutoGen/UniClassObject.py index d28fd3a1ea..183b2b2337 100644 --- a/BaseTools/Source/Python/AutoGen/UniClassObject.py +++ b/BaseTools/Source/Python/AutoGen/UniClassObject.py @@ -444,7 +444,7 @@ class UniFileClassObject(object): Line = Line[0 : StartPos] + UniStr + EndStr
else:
Line = Line[0 : StartPos] + UniStr + EndStr[1:]
- StartPos = Line.find(u'\\x', StartPos)
+ StartPos = Line.find(u'\\x', StartPos + 1)
IncList = gIncludePattern.findall(Line)
if len(IncList) == 1:
|