<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fix handling of UTF16-LE annotations"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103023">103023</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Fix handling of UTF16-LE annotations
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>teuf@gnome.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=134538" name="attach_134538" title="Test case">attachment 134538</a> <a href="attachment.cgi?id=134538&action=edit" title="Test case">[details]</a></span>
Test case

The 'unicode' annotation in the attached test case does not render properly. I
added it through the default mail application on my iOS11 iphone.
I trade that down to _poppler_goo_string_to_utf8() which assumes UTF16 strings
will always be big endian, while in my test file, a little endian UTF16 string
is used.
I've fixed this by adding 2 new methods to GooString (hasBigEndianBOM()
hasLittleEndianBOM()), but all users of GooString::hasUnicodeMarker() should
probably be audited and handle both types of UTF16 strings unless the pdf specs
mandates big endian strings. Since I'm not familiar at all with the PDF format,
I haven't tried to address this yet.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>