summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-07-27 03:32:26 +0000
committerBruce Momjian <bruce@momjian.us>2003-07-27 03:32:26 +0000
commit9df48371c20869ac63a63b45550dbf4b045aa4bf (patch)
treed01352587f18c4d1ba7827295a5a9aa06ffe5feb /doc/src
parente7fe89d57ddda6ad35c68bfcf1d78c2fe0caac4e (diff)
here are the patches for psql on Win32:
psql4win32.patch - changes in the psql source code psql-ref.patch - changes in the documentation psql-ref.sgml (for new builtin variable WIN32_CONSOLE) To apply them use "patch -p 1" in the root directory of the postgres source directory. These patches fix the following problems of psql on Win32 (all changes only have effect #ifdef WIN32): a) Problem: Static library libpq.a did not work Solution: Added WSAStartup() in fe-connect.c b) Problem: Secret Password was echoed by psql Solution: Password echoing disabled in sprompt.c c) Problem: 8bit characters were displayed/interpreted wrong in psql This is due to the fact that the Win32 "console" uses a different encoding than the rest of the Windows system Solution: Introduced a new psql variable WIN32_CONSOLE When set with "\set WIN32_console", the function OemToChar() is applied after reading input and CharToOem() before displaying Output Christoph Dalitz
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index b0e13a85d20..9e9c60ecc47 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.91 2003/07/23 15:05:42 tgl Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.92 2003/07/27 03:32:26 momjian Exp $
PostgreSQL documentation
-->
@@ -2076,6 +2076,19 @@ bar
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>WIN32_CONSOLE</varname></term>
+ <listitem>
+ <para>
+ This variable is only useful when working under the Win32 command
+ console. As the Win32 command console uses a different encoding than
+ the rest of the Windows system. Eight-bit characters (e.g. German Umlauts)
+ are corrupted. When this variable is set the command console encoding will
+ be translated into ASCII encoding for input and output.
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</refsect3>