pdf.js/src/shared
Jonas Jenwald 80342e2fdc Support UTF-16 little-endian strings in the stringToPDFString helper function (bug 1593902)
The bug report seem to suggest that we don't support UTF-16 strings with a BOM (byte order mark), which we *actually* do as evident by both the code and a unit-test.
The issue at play here is rather that we previously only supported big-endian UTF-16 BOM, and the `Title` string in the PDF document is using a *little-endian* UTF-16 BOM instead.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1593902
2019-11-05 12:43:17 +01:00
..
cffStandardStrings.js Fix errors reported by the comma-spacing ESLint rule 2016-12-12 20:35:53 +01:00
compatibility.js Update src/shared/compatibility.js to only run with SKIP_BABEL = false set 2019-10-13 11:33:41 +02:00
fonts_utils.js Convert some usage of indexOf to startsWith/includes where applicable 2019-01-18 17:57:41 +01:00
global_scope.js Moves global scope out of shared/util. 2017-08-22 18:20:52 -05:00
is_node.js fix: electron enviroment detection 2019-03-26 20:52:49 +08:00
message_handler.js [MessageHandler] Convert the code to a proper class 2019-10-30 23:22:59 +01:00
streams_polyfill.js Replace the bundled ReadableStream polyfill with the web-streams-polyfill npm package (issue 11157) 2019-09-23 22:16:59 +02:00
util.js Support UTF-16 little-endian strings in the stringToPDFString helper function (bug 1593902) 2019-11-05 12:43:17 +01:00