]> granicus.if.org Git - postgresql/commit
Add "\pset linestyle ascii/unicode" option to psql, allowing our traditional
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Oct 2009 21:04:01 +0000 (21:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Oct 2009 21:04:01 +0000 (21:04 +0000)
commit42ec8ad6286be046d86fc9f09bb4cdeefc395bfe
treebc2de6234cbc40060ba81d71222d593b0c680efe
parentb14071164366e7efee9dc3a017eb7cb4cfac3428
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
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/mbprint.c
src/bin/psql/mbprint.h
src/bin/psql/print.c
src/bin/psql/print.h
src/bin/psql/tab-complete.c
src/test/regress/pg_regress_main.c