<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 showing of some non-ASCII characters in forms"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92597">92597</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fix showing of some non-ASCII characters in forms
</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>mkasik@redhat.com
</td>
</tr></table>
<p>
<div>
<pre>Poppler renders some characters in forms as "fi" instead of showing the correct
glyph or nothing (if the font doesn't contain necessary glyphs). This can be
reproduced by opening the form from
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=756805">https://bugzilla.gnome.org/show_bug.cgi?id=756805</a> and typing "šč" into a text
field. Actual result is "fifi".
I've found that there are 2 minor bugs which if fixed improves the situation a
little.
The first one is that there is a misplaced continue statement in
"CharCodeToUnicode::mapToCharCode()". It should be called on the parent loop
instead of the nested one. After fixing this, there are no characters shown
which should be the case if it doesn't find them.
The second one is that "Annot::Layout()" calls
"ccToUnicode->mapToCharCode(&uChar, &c, 2)" with wrong parameter. The last one
should be "1" because the uChar is Unicode and hence the &uChar is an array
with just one member, not 2. After fixing this, at least the "š" is shown.
See the attached patches.</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>