Add "\pset linestyle ascii/unicode" option to psql, allowing our traditional
Tom Lane <tgl@sss.pgh.pa.us>
Add "\pset linestyle ascii/unicode" option to psql, allowing our traditional ASCII-art style of table output to be upgraded to use Unicode box drawing characters if desired. By default, psql will use the Unicode characters whenever client_encoding is UTF8. The patch forces linestyle=ascii in pg_regress usage, ensuring we don't break the regression tests in Unicode locales. Roger Leigh
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/psql-ref.sgml | modified | +34 −1 |
| src/bin/psql/command.c | modified | +21 −1 |
| src/bin/psql/mbprint.c | modified | +4 −4 |
| src/bin/psql/mbprint.h | modified | +2 −2 |
| src/bin/psql/print.c | modified | +175 −75 |
| src/bin/psql/print.h | modified | +35 −2 |
| src/bin/psql/tab-complete.c | modified | +3 −3 |
| src/test/regress/pg_regress_main.c | modified | +2 −2 |