diff options
author | Kinney, Michael D </o=Intel/ou=Americas01/cn=Workers/cn=Kinney, Michael D> | 2018-08-04 04:47:33 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-08-06 10:53:17 +0800 |
commit | fb04c9f0f86f1c2bd7d5ca1616685ac336680891 (patch) | |
tree | 1ecb8ba7495963b7eb5215e5fa70b374d659d650 /MdeModulePkg/Application/CapsuleApp/CapsuleApp.c | |
parent | 9e1edfc3de9c41083a5282f24da0f114146d63fd (diff) | |
download | edk2-fb04c9f0f86f1c2bd7d5ca1616685ac336680891.tar.gz edk2-fb04c9f0f86f1c2bd7d5ca1616685ac336680891.tar.bz2 edk2-fb04c9f0f86f1c2bd7d5ca1616685ac336680891.zip |
BaseTools/BinToPcd: Open output file as text file
https://bugzilla.tianocore.org/show_bug.cgi?id=1069
Undo changes from following commit:
https://github.com/tianocore/edk2/commit/83964ebc5e74549d6efc7134af19150a0b2079aa
Change the open mode for the output file from 'wb' to 'w' so the
output file is written as a text file and not a binary file.
This resolves the issue where the text file was not writable from
Python 3.x and also removes b'' from output file when the string
was encoded as a bytearray.
Cc: YanYan Sun <yanyan.sun@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Tested-by:YanYan Sun <yanyan.sun@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
(cherry picked from commit cd3a42640acdb4f5ac14ac19f22ede002124920c)
Diffstat (limited to 'MdeModulePkg/Application/CapsuleApp/CapsuleApp.c')
0 files changed, 0 insertions, 0 deletions