Skip to content

Commit

Permalink
fix: actually use chrcode which we went to such trouble to get
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Jul 10, 2024
1 parent d1c1bac commit 7beb129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfminer/psparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def _parse_string_1(self, s: bytes, i: int) -> int:
elif self.oct:
chrcode = int(self.oct, 8)
assert chrcode < 256, "Invalid octal %s (%d)" % (repr(self.oct), chrcode)
self._curtoken += bytes((int(self.oct, 8),))
self._curtoken += bytes((chrcode,))
self._parse1 = self._parse_string
return i

Expand Down

0 comments on commit 7beb129

Please sign in to comment.