diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-06-16 07:29:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-06-16 07:29:54 +0000 |
commit | cb7cbc16fa4b5933fb5d63052568e3ed6859857b (patch) | |
tree | bed17594c4880549288373de4d400512cbe2f82d /src/interfaces/libpq/fe-connect.c | |
parent | 0d8e7f6381291b85ad6264365e01143357d70a75 (diff) | |
download | postgresql-cb7cbc16fa4b5933fb5d63052568e3ed6859857b.tar.gz |
Hi, here are the patches to enhance existing MB handling. This time
I have implemented a framework of encoding translation between the
backend and the frontend. Also I have added a new variable setting
command:
SET CLIENT_ENCODING TO 'encoding';
Other features include:
Latin1 support more 8 bit cleaness
See doc/README.mb for more details. Note that the pacthes are
against May 30 snapshot.
Tatsuo Ishii
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 20c02950b1..ba386d6392 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.67 1998/06/15 19:30:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.68 1998/06/16 07:29:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -120,7 +120,11 @@ struct EnvironmentOptions { "PGTZ", "timezone" }, - +#ifdef MB + { + "PGCLIENTENCODING", "client_encoding" + }, +#endif /* internal performance-related settings */ { "PGCOSTHEAP", "cost_heap" @@ -371,7 +375,8 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, cons } else for (i = 0; conn->dbName[i]; i++) - if (isupper(conn->dbName[i])) + if (isascii((unsigned char)conn->dbName[i]) && + isupper(conn->dbName[i])) conn->dbName[i] = tolower(conn->dbName[i]); } |