Test results for Linux

test_006020_UTF-8_BOM

Test description

Test for the handling of an input stream containing a byte-order-mark.
The end result should indicate the correctly detected encoding in the prologue.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -X BOM -s

Input data

word1
word2

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <field>word1</field>
  </line>
  <line>
    <field>word2</field>
  </line>
</xmlfy>
<xmlfy_summary>
  <version>1.5.7</version>
  <timestamp>
    <start>Mon Feb  3 23:37:37 2020</start>
    <end>Mon Feb  3 23:37:37 2020</end>
  </timestamp>
  <md5_input>a344a6e23c2d672c1e8ec3a058ea1172</md5_input>
  <md5_output>90b81f1abfa38b8de54ac049689e385b</md5_output>
  <sha512_input>2e3c402d68578c004447afdea7355e398a85cea712fab379f61c12024ae4b5f6e1898ca5081f3f8a77caa4a557bd1110c2c79d4d5bc5addc9e0b00d981092037</sha512_input>
  <sha512_output>75bc14e156ac4425b666310e076de98ecbc662c0d02e29eb440dddd65559c1a50c3f8ae945f18e9d109ec190b5376d87804b3a7b5c7413e443d9ebb7353c0738</sha512_output>
  <args>
    <command>
      <arg>xmlfy</arg>
      <arg>-X</arg>
      <arg>newline</arg>
      <arg>unix</arg>
      <arg>-X</arg>
      <arg>BOM</arg>
      <arg>-s</arg>
    </command>
  </args>
  <separator>
    <level1>
      <delimiter>NEWLINE</delimiter>
    </level1>
    <level2>
      <delimiter>WHITESPACE</delimiter>
    </level2>
  </separator>
  <byte_order_mark>
    <input>UTF-8</input>
    <output>UTF-8</output>
  </byte_order_mark>
  <schema>
    <default>true</default>
    <records>
      <read>2</read>
      <expelled>0</expelled>
      <matched>2</matched>
      <unmatched>0</unmatched>
      <ignoredblank>0</ignoredblank>
      <printed>2</printed>
    </records>
  </schema>
</xmlfy_summary>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".