mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-03 19:00:51 +00:00
Fix one more PDF doc encoding error for 10.6 release (fixes #637)
This commit is contained in:
parent
15248592c9
commit
235c89e037
|
@ -1,7 +1,12 @@
|
||||||
2022-02-08 Jay Berkenbilt <ejb@ql.org>
|
2022-02-09 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
* 10.6.0: release
|
* 10.6.0: release
|
||||||
|
|
||||||
|
* Fix one more PDF doc encoding omission: 0xAD is also undefined.
|
||||||
|
Fixes #637.
|
||||||
|
|
||||||
|
2022-02-08 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
* Bug fix: when splitting pages with --split-pages or selecting
|
* Bug fix: when splitting pages with --split-pages or selecting
|
||||||
pages with --pages, set the output PDF version to the maximum of
|
pages with --pages, set the output PDF version to the maximum of
|
||||||
all the input PDF versions. This is a fix to QPDFJob. If you are
|
all the input PDF versions. This is a fix to QPDFJob. If you are
|
||||||
|
|
|
@ -2492,6 +2492,10 @@ QUtil::pdf_doc_to_utf8(std::string const& val)
|
||||||
{
|
{
|
||||||
ch_short = pdf_doc_low_to_unicode[ch - 24];
|
ch_short = pdf_doc_low_to_unicode[ch - 24];
|
||||||
}
|
}
|
||||||
|
else if (ch == 173)
|
||||||
|
{
|
||||||
|
ch_short = 0xfffd;
|
||||||
|
}
|
||||||
result += QUtil::toUTF8(ch_short);
|
result += QUtil::toUTF8(ch_short);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -88,8 +88,8 @@ alternatives
|
||||||
2: 83a9e99e
|
2: 83a9e99e
|
||||||
0: 717561636b
|
0: 717561636b
|
||||||
done alternatives
|
done alternatives
|
||||||
w˘wˇwˆw˙w˝w˛w˚w˜w<EFBFBD>w
|
w˘wˇwˆw˙w˝w˛w˚w˜w<EFBFBD>w<EFBFBD>w
|
||||||
done low characters
|
done other characters
|
||||||
---- whoami
|
---- whoami
|
||||||
quack1
|
quack1
|
||||||
quack2
|
quack2
|
||||||
|
|
|
@ -418,10 +418,10 @@ void transcoding_test()
|
||||||
print_alternatives(utf8);
|
print_alternatives(utf8);
|
||||||
print_alternatives("quack");
|
print_alternatives("quack");
|
||||||
std::cout << "done alternatives" << std::endl;
|
std::cout << "done alternatives" << std::endl;
|
||||||
std::string low = QUtil::pdf_doc_to_utf8(
|
std::string other = QUtil::pdf_doc_to_utf8(
|
||||||
"w\030w\031w\032w\033w\034w\035w\036w\037w\177w");
|
"w\030w\031w\032w\033w\034w\035w\036w\037w\177w\255w");
|
||||||
std::cout << low << std::endl;
|
std::cout << other << std::endl;
|
||||||
std::cout << "done low characters" << std::endl;
|
std::cout << "done other characters" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_whoami(char const* str)
|
void print_whoami(char const* str)
|
||||||
|
|
|
@ -6,7 +6,7 @@ Release Notes
|
||||||
For a detailed list of changes, please see the file
|
For a detailed list of changes, please see the file
|
||||||
:file:`ChangeLog` in the source distribution.
|
:file:`ChangeLog` in the source distribution.
|
||||||
|
|
||||||
10.6.0: February 8, 2022
|
10.6.0: February 9, 2022
|
||||||
- Preparation for replacement of ``PointerHolder``
|
- Preparation for replacement of ``PointerHolder``
|
||||||
|
|
||||||
The next major release of qpdf will replace ``PointerHolder`` with
|
The next major release of qpdf will replace ``PointerHolder`` with
|
||||||
|
|
Loading…
Reference in New Issue
Block a user