• Tom Lane's avatar
    Fix translation of special characters in psql's LaTeX output modes. · 70d7e507
    Tom Lane authored
    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 9a98984f.  Back-patch
    the code change to all supported versions.
    70d7e507
psql.out 102 KB