diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-16 12:52:05 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-16 12:52:05 +0100 |
commit | 3e2109ab373d8830146efbcb0af735ff58f9ad32 (patch) | |
tree | 040035e860b627bf7ffd550722da46a0c328c147 /libqpdf | |
parent | 38d8362c09e1d41c85f808995ad93a3bed238cf7 (diff) | |
download | qpdf-3e2109ab373d8830146efbcb0af735ff58f9ad32.tar.zst |
Remove special case for 0xad for 10.6.2.release-qpdf-10.6.2
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QUtil.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc index d0802334..d56dd14f 100644 --- a/libqpdf/QUtil.cc +++ b/libqpdf/QUtil.cc @@ -2293,10 +2293,9 @@ transcode_utf8(std::string const& utf8_val, std::string& result, } else if ((codepoint == 0xad) && (encoding == e_pdfdoc)) { - // PDFDocEncoding omits 0x00ad (soft hyphen), but rather - // than treating it as undefined, map it to a regular - // hyphen. - result.append(1, '-'); + // PDFDocEncoding omits 0x00ad (soft hyphen). + okay = false; + result.append(1, unknown); } else if ((codepoint > 160) && (codepoint < 256) && ((encoding == e_winansi) || (encoding == e_pdfdoc))) |