postgresql/src/fe_utils
Tom Lane ac305ff8c3 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.
2018-11-26 17:32:51 -05:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
Makefile Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
mbprint.c Move psql's print.c and mbprint.c into src/fe_utils. 2016-03-24 18:27:28 -04:00
print.c Fix translation of special characters in psql's LaTeX output modes. 2018-11-26 17:32:51 -05:00
psqlscan.l Fix lexing of standard multi-character operators in edge cases. 2018-08-23 21:35:49 +01:00
simple_list.c Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
string_utils.c Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:48 -08:00