Re: BUG #6510: A simple prompt is displayed using wrong charset

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #6510: A simple prompt is displayed using wrong charset
Дата
Msg-id 1331925178-sup-9261@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #6510: A simple prompt is displayed using wrong charset  (exclusion@gmail.com)
Ответы Re: BUG #6510: A simple prompt is displayed using wrong charset  (Alexander LAW <exclusion@gmail.com>)
Список pgsql-bugs
Excerpts from exclusion's message of s=C3=A1b mar 03 15:44:37 -0300 2012:

> I'm using postgresSQL in Windows with Russian locale and get unreadable
> messages when the postgres utilities prompting me for input.
> Please look at the screenshot:
> http://oi44.tinypic.com/aotje8.jpg
> (The psql writes the unreadable message prompting for the password.)
> But at the same time the following message (WARINING) displayed right.
>=20
> I believe it's related to setlocale and the difference between OEM and AN=
SI
> encoding, which we had in Windows with the Russian locale.
> The startup code of psql sets locale with the call setlocale(LC_ALL, "") =
and
> MSDN documentation says that the call:
> Sets the locale to the default, which is the user-default ANSI code page
> obtained from the operating system.
>=20
> After the call all the strings printed with the printf(stdout) will go
> through  the ANSI->OEM conversion.
>=20
> But in the simple_prompt function strings written to con, and such writes=
 go
> without conversion.

Were you able to come up with some way to make this work?

--=20
=C3=81lvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6535: LEFT JOIN on large table is altering data
Следующее
От: "Mark M."
Дата:
Сообщение: Re: BUG #6511: calling spi_exec_query from non-main package, results in: couldn't fetch $_TD