1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/fclasses/bug31340
mpv 8f34d47e21 0031340: LDOM fails to read XML file starting with BOM
Added support of BOM (byte order mask) characters at the start of an XML stream or file and provided information about found BOM in LDOMParser.
2020-09-04 18:14:20 +03:00

19 lines
407 B
Plaintext

puts "================"
puts "0031340: LDOM fails to read XML file starting with BOM"
puts "================"
puts ""
pload QAcommands
set list [OCC983 [locate_data_file bug31340.xml]]
if { [regexp "Document parsed" $list] == 1 } {
if {[lsearch -exact ${list} "UTF-8"] != -1 } {
puts "OK"
} else {
puts "Error : BOM was not found in $list"
}
} else {
puts "Error : document not parsed"
}