X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=BaseTools%2FSource%2FPython%2FUPT%2FXml%2FIniToXml.py;h=70d8fb19f2697d9b1c36aced87d26d1580a549f4;hb=1ccc4d895dd8d659d016efcd6ef8a48749aba1d0;hp=8125f183be5e26535f83efd1b5a216006e315251;hpb=678f85131238622e576705117e299d81cff755c9;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/UPT/Xml/IniToXml.py b/BaseTools/Source/Python/UPT/Xml/IniToXml.py index 8125f183be..70d8fb19f2 100644 --- a/BaseTools/Source/Python/UPT/Xml/IniToXml.py +++ b/BaseTools/Source/Python/UPT/Xml/IniToXml.py @@ -326,7 +326,7 @@ def IniToXml(IniFile): CurrentKey = '' PreMap = None Map = None - FileContent = ConvertSpecialChar(open(IniFile, 'r').readlines()) + FileContent = ConvertSpecialChar(open(IniFile, 'rb').readlines()) LastIndex = 0 for Index in range(0, len(FileContent)): LastIndex = Index