Test results for Linux

test_001081_option_columns_multibyte_UTF-8

Test description

Test for column generated elements from an input stream containing multi-byte
UTF-8 charaters mixed with ASCII characters. The columns ranges specified
should correctly treat multi-byte characters as one character (code-point)
and produce correctly targeted elements.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -C 1-9:nine_chars -C 1-7:first_seven_chars -C '3-9:last_seven_chars' 

Input data

12κόσμε89

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <nine_chars>12κόσμε89</nine_chars>
    <first_seven_chars>12κόσμε</first_seven_chars>
    <last_seven_chars>κόσμε89</last_seven_chars>
  </line>
</xmlfy>

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