[MacPorts] #64720: dblatex: incorrect UTF-8 handling and escaped characters in listing environment

MacPorts noreply at macports.org
Thu Feb 24 20:43:46 UTC 2022


#64720: dblatex: incorrect UTF-8 handling and escaped characters in listing
environment
------------------------+------------------------
  Reporter:  oksmith77  |      Owner:  neverpanic
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  dblatex    |
------------------------+------------------------

Comment (by neverpanic):

 I believe this needs a patch. This problem does not seem to be specific to
 macports, though, so this should be addressed upstream.

 {{{#!diff
 --- lib/dbtexmf/dblatex/rawverb.py.orig 2022-02-24 21:35:36.000000000
 +0100
 +++ lib/dbtexmf/dblatex/rawverb.py      2022-02-24 21:35:39.000000000
 +0100
 @@ -36,7 +36,7 @@
          n = tex_handler_counter[self._errors]
          for c in ntext:
              if ord(c) > 255:
 -                c = str(self.pre) + c + str(self.post)
 +                c = self.pre.decode(self.output_encoding) + c +
 self.post.decode(self.output_encoding)
                  n += 1
              text += c
          tex_handler_counter[self._errors] = n
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64720#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list