Excerpts from Alexander LAW's message of dom mar 18 06:04:51 -0300 2012:
> I see two ways to resolve the issue.
> First is to use CharToOemBuff when writing a string to the "con" and
> OemToCharBuff when reading an input from it.
> The other is to always use stderr/stdin for Win32 as it was done for
> msys before. I think it's more straightforward.
Using console directly instead of stdin/out/err is more appropriate when
asking for passwords and reading them back, because you can redirect the
rest of the output to/from files or pipes, without the prompt
interfering with that. This also explains why stderr is used instead of
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
In response to
pgsql-hackers by date
|Next:||From: Peter Geoghegan||Date: 2012-03-19 20:48:07|
|Subject: Re: Re: pg_stat_statements normalisation without invasive
changes to the parser (was: Next steps on pg_stat_statements normalisation)|
|Previous:||From: Alvaro Herrera||Date: 2012-03-19 20:01:37|
|Subject: Re: patch: autocomplete for functions|
pgsql-bugs by date
|Next:||From: Alvaro Herrera||Date: 2012-03-19 20:40:37|
|Subject: Re: BUG #6511: calling spi_exec_query from non-main package, results in: couldn't fetch $_TD|
|Previous:||From: kebe.1969||Date: 2012-03-19 17:47:29|
|Subject: BUG #6543: pgadmin III - Error defining filter.|
pgsql-general by date
|Next:||From: david.sahagian||Date: 2012-03-19 20:24:10|
|Subject: usage of pg_get_functiondef() -- SQL state 42809|
|Previous:||From: Lonni J Friedman||Date: 2012-03-19 19:38:11|
|Subject: Re: pg_upgrade + streaming replication ?|