*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.29 2003/08/26 18:35:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.30 2003/09/05 02:31:10 momjian Exp $
*/
#include "postgres_fe.h"
#include "input.h"
#define PSQLHISTORY ".psql_history"
-#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
-
#ifdef USE_READLINE
static enum histcontrol
GetHistControlConfig(void)
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;
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/mbprint.c,v 1.9 2003/08/04 23:59:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/mbprint.c,v 1.10 2003/09/05 02:31:10 momjian Exp $
*/
#include "postgres_fe.h"
else
{
#ifdef WIN32
-
/*
* translate characters to DOS console encoding, e.g. needed for
* German umlauts