Remove WIN32 console.
authorBruce Momjian <[email protected]>
Fri, 12 Sep 2003 02:46:03 +0000 (02:46 +0000)
committerBruce Momjian <[email protected]>
Fri, 12 Sep 2003 02:46:03 +0000 (02:46 +0000)
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/input.c
src/bin/psql/mbprint.c
src/bin/scripts/Makefile

index 251f67fa5cdaf9dad7b637c716d5e0404b25119b..d0678e1920b66d530b9fcb7164d77f8224e8210e 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.94.2.1 2003/09/07 04:36:46 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.94.2.2 2003/09/12 02:46:00 momjian Exp $
 PostgreSQL documentation
 -->
 
@@ -2073,19 +2073,6 @@ 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>
index 91fa5918249d6c684a04e1c2369e7ddaba50a1eb..58ef6ce387c100d43fccf74661076207d88c0ed2 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2003, PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.28.2.1 2003/09/07 04:37:04 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.28.2.2 2003/09/12 02:46:03 momjian Exp $
  */
 #include "postgres_fe.h"
 #include "input.h"
@@ -99,15 +99,6 @@ gets_interactive(const char *prompt)
    else
        s = gets_basic(prompt);
 
-#ifdef WIN32
-    /*
-     * translate DOS console character set into ANSI, needed e.g. for German
-     * umlauts
-     */
-   if (GetVariableBool(pset.vars, "WIN32_CONSOLE"))
-       OemToChar(s, s);
-#endif
-
    if (useHistory && s && s[0])
    {
        enum histcontrol HC;
index a44ca6c9073c203e5a1771ee231977e092a3dbf1..18723aaef1fb4437ac0fda68a882f8a1f6841a5f 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2003, PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/mbprint.c,v 1.9.2.1 2003/09/07 04:37:04 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/mbprint.c,v 1.9.2.2 2003/09/12 02:46:03 momjian Exp $
  */
 
 #include "postgres_fe.h"
@@ -337,15 +337,6 @@ mbvalidate(unsigned char *pwcs, int encoding)
        return mb_utf_validate(pwcs);
    else
    {
-#if defined(WIN32) && !defined(PGSCRIPTS)
-       /*
-        * translate characters to DOS console encoding, e.g. needed for
-        * German umlauts
-        */
-       if (GetVariableBool(pset.vars, "WIN32_CONSOLE"))
-           CharToOem(pwcs, pwcs);
-#endif
-
        /*
         * other encodings needing validation should add their own
         * routines here
index 16acd2029bc0fa0f155f34e6bbee6a65b5d82f21..3c3a78ce3861eb07a6df9782db900d3d8debe317 100644 (file)
@@ -5,7 +5,7 @@
 # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
 # Portions Copyright (c) 1994, Regents of the University of California
 #
-# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.22.2.1 2003/09/07 04:37:04 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.22.2.2 2003/09/12 02:46:03 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
 
 PROGRAMS = createdb createlang createuser dropdb droplang dropuser clusterdb vacuumdb
 
-override CPPFLAGS := -DPGSCRIPTS -I$(top_srcdir)/src/bin/pg_dump -I$(top_srcdir)/src/bin/psql -I$(libpq_srcdir) $(CPPFLAGS)
+override CPPFLAGS := -I$(top_srcdir)/src/bin/pg_dump -I$(top_srcdir)/src/bin/psql -I$(libpq_srcdir) $(CPPFLAGS)
 
 all: submake-libpq submake-backend $(PROGRAMS)