mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
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
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.35 2009/06/11 14:49:08 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.36 2009/10/13 21:04:01 tgl Exp $
|
||||
*
|
||||
* XXX this file does not really belong in psql/. Perhaps move to libpq?
|
||||
* It also seems that the mbvalidate function is redundant with existing
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
typedef unsigned int pg_wchar;
|
||||
|
||||
static int
|
||||
get_utf8_id(void)
|
||||
int
|
||||
pg_get_utf8_id(void)
|
||||
{
|
||||
static int utf8_id = -1;
|
||||
|
||||
@@ -40,7 +40,7 @@ get_utf8_id(void)
|
||||
return utf8_id;
|
||||
}
|
||||
|
||||
#define PG_UTF8 get_utf8_id()
|
||||
#define PG_UTF8 pg_get_utf8_id()
|
||||
|
||||
|
||||
static pg_wchar
|
||||
|
||||
Reference in New Issue
Block a user