pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix translation of special characters in psql's LaTeX output mod
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix translation of special characters in psql's LaTeX output mod
@ 2018-11-26 22:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-11-26 22:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix translation of special characters in psql's LaTeX output mod
@ 2018-11-26 22:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-11-26 22:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ac305ff8c3dfe44d3441297f665ac3c602a87199

Modified Files
--------------
src/fe_utils/print.c | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix translation of special characters in psql's LaTeX output mod
@ 2018-11-26 22:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-11-26 22:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/70d7e507ef9d380bd46345e984f069207de5e24e

Modified Files
--------------
src/fe_utils/print.c               |  36 ++++++++--
src/test/regress/expected/psql.out | 132 ++++++++++++++++++-------------------
src/test/regress/sql/psql.sql      |   4 +-
3 files changed, 98 insertions(+), 74 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix translation of special characters in psql's LaTeX output mod
@ 2018-11-26 22:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-11-26 22:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/18a0a8548ad241e8b44d472ba674fc86b3780e21

Modified Files
--------------
src/bin/psql/print.c | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix translation of special characters in psql's LaTeX output mod
@ 2018-11-26 22:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-11-26 22:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/74bfb5388da84541e4df2d6533f2d5cfe665d5fe

Modified Files
--------------
src/bin/psql/print.c | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix translation of special characters in psql's LaTeX output mod
@ 2018-11-26 22:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-11-26 22:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b352cf7a80e0841017ca198f27f9da49d7256739

Modified Files
--------------
src/fe_utils/print.c | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2018-11-26 22:33 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-26 22:33 pgsql: Fix translation of special characters in psql's LaTeX output mod Tom Lane <tgl@sss.pgh.pa.us>
2018-11-26 22:33 pgsql: Fix translation of special characters in psql's LaTeX output mod Tom Lane <tgl@sss.pgh.pa.us>
2018-11-26 22:33 pgsql: Fix translation of special characters in psql's LaTeX output mod Tom Lane <tgl@sss.pgh.pa.us>
2018-11-26 22:33 pgsql: Fix translation of special characters in psql's LaTeX output mod Tom Lane <tgl@sss.pgh.pa.us>
2018-11-26 22:33 pgsql: Fix translation of special characters in psql's LaTeX output mod Tom Lane <tgl@sss.pgh.pa.us>
2018-11-26 22:33 pgsql: Fix translation of special characters in psql's LaTeX output mod Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox