Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Tests/CheckUnicodeSourceFiles.py
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Tests/CheckUnicodeSourceFiles.py
r77662 r80721 4 4 # Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> 5 5 # 6 # This program and the accompanying materials 7 # are licensed and made available under the terms and conditions of the BSD License 8 # which accompanies this distribution. The full text of the license may be found at 9 # http://opensource.org/licenses/bsd-license.php 10 # 11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 6 # SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 # 14 8 … … 111 105 # if seen in a .uni file. 112 106 # 113 data = codecs.BOM_UTF16_LE + '//\x01\xd8 '107 data = codecs.BOM_UTF16_LE + b'//\x01\xd8 ' 114 108 115 109 self.CheckFile(encoding=None, shouldPass=False, string=data) … … 162 156 # if seen in a .uni file. 163 157 # 164 data = '\xed\xa0\x81'158 data = b'\xed\xa0\x81' 165 159 166 160 self.CheckFile(encoding=None, shouldPass=False, string=data) … … 171 165 # the UTF-8 BOM 172 166 # 173 data = codecs.BOM_UTF8 + '\xed\xa0\x81'167 data = codecs.BOM_UTF8 + b'\xed\xa0\x81' 174 168 175 169 self.CheckFile(encoding=None, shouldPass=False, string=data)
Note:
See TracChangeset
for help on using the changeset viewer.