Skip to content

Commit

Permalink
Drop the FEFF prefix on Unicode strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 19, 2023
1 parent 3f0aad7 commit 088646e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ v1.1.4 (Month DD, YYYY)

- Fixed detection of encrypted strings that are too short (Issue #52)
- Fixed a TrueType CMAP decoding bug.
- Fixed a text rendering issue for Asian text.


v1.1.3 (November 15, 2023)
Expand Down
2 changes: 1 addition & 1 deletion pdfio-content.c
Original file line number Diff line number Diff line change
Expand Up @@ -3053,7 +3053,7 @@ write_string(pdfio_stream_t *st, // I - Stream


// Start the string...
if (!pdfioStreamPuts(st, unicode ? "<FEFF" : "("))
if (!pdfioStreamPuts(st, unicode ? "<" : "("))
return (false);

// Loop through the string, handling UTF-8 as needed...
Expand Down
3 changes: 2 additions & 1 deletion testpdfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,8 @@ write_font_test(
"Märr-ŋamathirri",
"Ẹ ku abọ",
"Kíimak 'oolal",
"Ngiyakwemukela"
"Ngiyakwemukela",
"いらっしゃいませ"
};


Expand Down

0 comments on commit 088646e

Please sign in to comment.