From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix translation of special characters in psql's LaTeX output mod |
Date: | 2018-11-26 22:33:09 |
Message-ID: | E1gRPRF-0004Md-SL@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix translation of special characters in psql's LaTeX output modes.
latex_escaped_print() mistranslated \ and failed to provide any translation
for # ^ and ~, all of which would typically lead to LaTeX document syntax
errors. In addition it didn't translate < > and |, which would typically
render as unexpected characters.
To some extent this represents shortcomings in ancient versions of LaTeX,
which if memory serves had no easy way to render these control characters
as ASCII text. But that's been fixed for, um, decades. In any case there
is no value in emitting guaranteed-to-fail output for these characters.
Noted while fooling with test cases added by commit 9a98984f4. Back-patch
the code change to all supported versions.
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/815409093740d1f6c65da16253636916c1805d91
Modified Files
--------------
src/fe_utils/print.c | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-11-26 22:42:10 | pgsql: Fix pg_upgrade for oid removal. |
Previous Message | Stephen Frost | 2018-11-26 21:22:53 | Re: pgsql: Integrate recovery.conf into postgresql.conf |