Add "\pset linestyle ascii/unicode" option to psql, allowing our traditional

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 42ec8ad6286be046d86fc9f09bb4cdeefc395bfe
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-10-13T21:04:01Z
Releases: 9.0.0
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

PathChange+/−
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