pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6510: A simple prompt is displayed using wrong charset
26+ messages / 10 participants
[nested] [flat]

* BUG #6510: A simple prompt is displayed using wrong charset
@ 2012-03-03 18:44 exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 26+ messages in thread

From: exclusion@gmail.com @ 2012-03-03 18:44 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6510
Logged by:          Alexander LAW
Email address:      exclusion@gmail.com
PostgreSQL version: 9.1.3
Operating system:   Windows
Description:        

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.

I believe it's related to setlocale and the difference between OEM and ANSI
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.

After the call all the strings printed with the printf(stdout) will go
through  the ANSI->OEM conversion.

But in the simple_prompt function strings written to con, and such writes go
without conversion.

I've made a little test to illustrate this:

#include "stdafx.h"
#include <locale.h>

int _tmain(int argc, _TCHAR* argv[])
{
    printf("ОК\n");
    setlocale(0, "");
    fprintf(stdout, "ОК\n");
    FILE * termin = fopen("con", "w");
    fprintf(termin, "ОК\n");
    fflush(termin);
    return 0;
}

where "ОК" is "OK" with russian letters.
This test gives the following result:
http://oi39.tinypic.com/35jgljs.jpg

The second line is readable, while the others are not.

If it can be helpful to understand the issue, I can perform another tests.

Thanks in advance,
Alexander





^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
@ 2012-03-16 19:13 ` Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Alvaro Herrera @ 2012-03-16 19:13 UTC (permalink / raw)
  To: exclusion <exclusion@gmail.com>; +Cc: pgsql-bugs


Excerpts from exclusion's message of sáb 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.
> 
> I believe it's related to setlocale and the difference between OEM and ANSI
> 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.
> 
> After the call all the strings printed with the printf(stdout) will go
> through  the ANSI->OEM conversion.
> 
> 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?

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



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
@ 2012-03-18 09:04   ` Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Alexander LAW @ 2012-03-18 09:04 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: pgsql-bugs

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.
I tested the attached patch (build the source with msvc) and it fixes 
the issue. If it looks acceptible, then probably DEVTTY should not be 
used on Windows at all.
I found two other references of DEVTTY at
psql/command.c
success = saveHistory(fname ? fname : DEVTTY, -1, false, false);

and
contrib/pg_upgrade/option.c
log_opts.debug_fd = fopen(DEVTTY, "w");

By the way, is there any reason to use stderr for the prompt output, not 
stdout?

Regards,
Alexander


16.03.2012 23:13, Alvaro Herrera пишет:
> Excerpts from exclusion's message of sáb 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.
>>
>> I believe it's related to setlocale and the difference between OEM and ANSI
>> 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.
>>
>> After the call all the strings printed with the printf(stdout) will go
>> through  the ANSI->OEM conversion.
>>
>> 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?
>

Attachments:

sprompt.diff (text/x-patch, 720B) download --- original/src/port/sprompt.c 2012-02-24 02:53:36.000000000 +0400 +++ fix/src/port/sprompt.c 2012-03-17 18:52:15.010559900 +0400 @@ -60,14 +60,13 @@ * Do not try to collapse these into one "w+" mode file. Doesn't work on * some platforms (eg, HPUX 10.20). */ +#ifdef WIN32 + termin = stdin; + termout = stderr; +#else termin = fopen(DEVTTY, "r"); termout = fopen(DEVTTY, "w"); - if (!termin || !termout -#ifdef WIN32 - /* See DEVTTY comment for msys */ - || (getenv("OSTYPE") && strcmp(getenv("OSTYPE"), "msys") == 0) -#endif - ) + if (!termin || !termout) { if (termin) fclose(termin); @@ -76,6 +75,7 @@ termin = stdin; termout = stderr; } +#endif #ifdef HAVE_TERMIOS_H if (!echo)
^ permalink raw reply [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
@ 2012-03-19 20:05     ` Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Alvaro Herrera @ 2012-03-19 20:05 UTC (permalink / raw)
  To: Alexander LAW <exclusion@gmail.com>; +Cc: pgsql-bugs


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
stdout.

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



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
@ 2012-03-20 19:50       ` Alexander LAW <exclusion@gmail.com>
  2012-03-23 15:32         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  0 siblings, 2 replies; 26+ messages in thread

From: Alexander LAW @ 2012-03-20 19:50 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: pgsql-bugs

Thanks, I've understood your point.
Please look at the patch. It implements the first way and it makes psql 
work too.

Regards,
Alexander

20.03.2012 00:05, Alvaro Herrera пишет:
> 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
> stdout.
>

Attachments:

sprompt.diff (text/x-patch, 1.1K) download --- a/src/port/sprompt.c 2012-02-24 02:53:36.000000000 +0400 +++ b/src/port/sprompt.c 2012-03-20 23:34:22.181979200 +0400 @@ -41,6 +41,7 @@ char *destination; FILE *termin, *termout; + char *_prompt; #ifdef HAVE_TERMIOS_H struct termios t_orig, @@ -49,6 +50,7 @@ #ifdef WIN32 HANDLE t = NULL; LPDWORD t_orig = NULL; + char *oem_prompt = NULL; #endif #endif @@ -104,7 +106,20 @@ if (prompt) { - fputs(_(prompt), termout); + _prompt = _(prompt); +#ifdef WIN32 + if ((termout != stderr) && (termout != stdout)) + { + oem_prompt = (char*) malloc(strlen(_prompt) + 1); + CharToOemBuff(_prompt, oem_prompt, strlen(_prompt) + 1); + _prompt = oem_prompt; + } +#endif + fputs(_prompt, termout); +#ifdef WIN32 + if (oem_prompt) + free(oem_prompt); +#endif fflush(termout); } @@ -130,6 +145,13 @@ /* remove trailing newline */ destination[length - 1] = '\0'; +#ifdef WIN32 + if (termin != stdin) + { + OemToCharBuff(destination, destination, strlen(destination) + 1); + } +#endif + #ifdef HAVE_TERMIOS_H if (!echo) {
^ permalink raw reply [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
@ 2012-03-23 15:32         ` Alvaro Herrera <alvherre@commandprompt.com>
  1 sibling, 0 replies; 26+ messages in thread

From: Alvaro Herrera @ 2012-03-23 15:32 UTC (permalink / raw)
  To: Alexander LAW <exclusion@gmail.com>; +Cc: pgsql-bugs; Pg Hackers <pgsql-hackers@postgresql.org>


Excerpts from Alexander LAW's message of mar mar 20 16:50:14 -0300 2012:
> Thanks, I've understood your point.
> Please look at the patch. It implements the first way and it makes psql 
> work too.

Great, thanks.  Hopefully somebody with Windows-compile abilities will
have a look at this.


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



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
@ 2012-10-10 11:05         ` Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  1 sibling, 1 reply; 26+ messages in thread

From: Noah Misch @ 2012-10-10 11:05 UTC (permalink / raw)
  To: Alexander LAW <exclusion@gmail.com>; +Cc: Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs

Hi Alexander,

I was able to reproduce the problem based on your description and test case,
and your change does resolve it for me.

On Tue, Mar 20, 2012 at 11:50:14PM +0400, Alexander LAW wrote:
> Thanks, I've understood your point.
> Please look at the patch. It implements the first way and it makes psql  
> work too.

> 20.03.2012 00:05, Alvaro Herrera ??????????:
>> 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
>> stdout.

The console output code page will usually match the OEM code page, but this is
not guaranteed.  For example, one can change it with chcp.exe before starting
psql.  The conversion should be to the actual console output code page.  After
"chcp 869", notice how printing to stdout yields question marks while your
code yields unrelated characters.

It would be nicer still to find a way to make the output routines treat this
explicitly-opened console like stdout to a console.  I could not find any
documentation around this.  Digging into the CRT source code, I see that the
automatic code page conversion happens in write().  One of tests write() uses
to determine whether the destination is a console is to call GetConsoleMode()
on the HANDLE underlying the CRT file descriptor.  If that call fails, write()
assumes the target is not a console.  GetConsoleMode() requires GENERIC_READ
access on its subject HANDLE, but the HANDLE resulting from our fopen("con",
"w") has only GENERIC_WRITE.  Therefore, write() wrongly concludes that it's
writing to a non-console.  fopen("con", "w+") fails, but fopen("CONOUT$",
"w+") seems to give the outcome we need.  write() recognizes that it's writing
to a console and applies the code page conversion.  Let's use that.

This gave me occasion to look at the special case for MSYS that you mentioned.
I observe the same behavior when running a native psql in a Cygwin xterm;
writes to the console succeed but do not appear anywhere.  Instead of guessing
at console visibility based on an environment variable witnessing a particular
platform, let's check IsWindowVisible(GetConsoleWindow()).

What do you think of taking that approach?

Thanks,
nm




^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
@ 2012-10-14 06:35           ` Alexander Law <exclusion@gmail.com>
  2012-10-14 16:10             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  0 siblings, 2 replies; 26+ messages in thread

From: Alexander Law @ 2012-10-14 06:35 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs

Hi Noah,

Thank you for your review.
I agree with you, CONOUT$ way is much simpler. Please look at the patch.
Regarding msys - yes, that check was not correct.
In fact you can use "con" with msys, if you run sh.exe, not a graphical 
terminal.
So the issue with con not related to msys, but to some terminal 
implementations.
Namely, I see that con is not supported by rxvt, mintty and xterm (from 
x.cygwin project).
(rxvt was default terminal for msys 1.0.10, so I think such behavior was 
considered as msys feature because of this)
Your solution to use IsWindowVisible(GetConsoleWindow()) works for these 
terminals (I've made simple test and it returns false for all of them), 
but this check will not work for telnet (console app running through 
telnet can use con/conout).
Maybe this should be considered as a distinct bug with another patch 
required? (I see no ideal solution for it yet. Probably it's possible to 
detect not "ostype", but these terminals, though it would not be generic 
too.)
And there is another issue with a console charset. When writing string 
to a console CRT converts it to console encoding, but when reading input 
back it doesn't. So it seems, there should be conversion from 
ConsoleCP() to ACP() and then probably to UTF-8 to make postgres 
utilities support national chars in passwords or usernames (with 
createuser --interactive).
I think it can be fixed as another bug too.

Best regards,
Alexander


10.10.2012 15:05, Noah Misch wrote:
> Hi Alexander,
>
>
> The console output code page will usually match the OEM code page, but this is
> not guaranteed.  For example, one can change it with chcp.exe before starting
> psql.  The conversion should be to the actual console output code page.  After
> "chcp 869", notice how printing to stdout yields question marks while your
> code yields unrelated characters.
>
> It would be nicer still to find a way to make the output routines treat this
> explicitly-opened console like stdout to a console.  I could not find any
> documentation around this.  Digging into the CRT source code, I see that the
> automatic code page conversion happens in write().  One of tests write() uses
> to determine whether the destination is a console is to call GetConsoleMode()
> on the HANDLE underlying the CRT file descriptor.  If that call fails, write()
> assumes the target is not a console.  GetConsoleMode() requires GENERIC_READ
> access on its subject HANDLE, but the HANDLE resulting from our fopen("con",
> "w") has only GENERIC_WRITE.  Therefore, write() wrongly concludes that it's
> writing to a non-console.  fopen("con", "w+") fails, but fopen("CONOUT$",
> "w+") seems to give the outcome we need.  write() recognizes that it's writing
> to a console and applies the code page conversion.  Let's use that.
>
> This gave me occasion to look at the special case for MSYS that you mentioned.
> I observe the same behavior when running a native psql in a Cygwin xterm;
> writes to the console succeed but do not appear anywhere.  Instead of guessing
> at console visibility based on an environment variable witnessing a particular
> platform, let's check IsWindowVisible(GetConsoleWindow()).
>
> What do you think of taking that approach?
>
> Thanks,
> nm

Attachments:

sprompt.diff (text/x-patch, 481B) download --- a/src/port/sprompt.c +++ b/src/port/sprompt.c @@ -60,8 +60,13 @@ simple_prompt(const char *prompt, int maxlen, bool echo) * Do not try to collapse these into one "w+" mode file. Doesn't work on * some platforms (eg, HPUX 10.20). */ +#ifdef WIN32 + termin = fopen("CONIN$", "r"); + termout = fopen("CONOUT$", "w+"); +#else termin = fopen(DEVTTY, "r"); termout = fopen(DEVTTY, "w"); +#endif if (!termin || !termout #ifdef WIN32 /* See DEVTTY comment for msys */
^ permalink raw reply [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
@ 2012-10-14 16:10             ` Tom Lane <tgl@sss.pgh.pa.us>
  2012-10-15 09:48               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  1 sibling, 1 reply; 26+ messages in thread

From: Tom Lane @ 2012-10-14 16:10 UTC (permalink / raw)
  To: Alexander Law <exclusion@gmail.com>; +Cc: Noah Misch <noah@leadboat.com>; Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs

Alexander Law <exclusion@gmail.com> writes:

> +#ifdef WIN32
> +	termin = fopen("CONIN$", "r");
> +	termout = fopen("CONOUT$", "w+");
> +#else
>  	termin = fopen(DEVTTY, "r");
>  	termout = fopen(DEVTTY, "w");
> +#endif
>  	if (!termin || !termout

My immediate reaction to this patch is "that's a horrible kluge, why
shouldn't we change the definition of DEVTTY instead?"  Is there a
similar issue in other places where we use DEVTTY?

Also, why did you change the termout output mode, is that important
or just randomness?

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-14 16:10             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
@ 2012-10-15 09:48               ` Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 26+ messages in thread

From: Noah Misch @ 2012-10-15 09:48 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Alexander Law <exclusion@gmail.com>; Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs

On Sun, Oct 14, 2012 at 12:10:42PM -0400, Tom Lane wrote:
> Alexander Law <exclusion@gmail.com> writes:
> 
> > +#ifdef WIN32
> > +	termin = fopen("CONIN$", "r");
> > +	termout = fopen("CONOUT$", "w+");
> > +#else
> >  	termin = fopen(DEVTTY, "r");
> >  	termout = fopen(DEVTTY, "w");
> > +#endif
> >  	if (!termin || !termout
> 
> My immediate reaction to this patch is "that's a horrible kluge, why
> shouldn't we change the definition of DEVTTY instead?"

You could make DEVTTY_IN, DEVTTY_IN_MODE, DEVTTY_OUT and DEVTTY_OUT_MODE to
capture all the differences.  That doesn't strike me as an improvement, and no
other function would use them at present.  As I explained in my reply to
Alexander, we should instead remove DEVTTY.

> Is there a
> similar issue in other places where we use DEVTTY?

Yes.  However, the other use of DEVTTY arises only with readline support, not
typical of native Windows builds.

> Also, why did you change the termout output mode, is that important
> or just randomness?

It's essential:
http://archives.postgresql.org/message-id/20121010110555.GA21405@tornado.leadboat.com

nm




^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
@ 2012-10-15 09:41             ` Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  1 sibling, 1 reply; 26+ messages in thread

From: Noah Misch @ 2012-10-15 09:41 UTC (permalink / raw)
  To: Alexander Law <exclusion@gmail.com>; +Cc: Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs

On Sun, Oct 14, 2012 at 10:35:04AM +0400, Alexander Law wrote:
> I agree with you, CONOUT$ way is much simpler. Please look at the patch.

See comments below.

> Regarding msys - yes, that check was not correct.
> In fact you can use "con" with msys, if you run sh.exe, not a graphical  
> terminal.
> So the issue with con not related to msys, but to some terminal  
> implementations.
> Namely, I see that con is not supported by rxvt, mintty and xterm (from  
> x.cygwin project).
> (rxvt was default terminal for msys 1.0.10, so I think such behavior was  
> considered as msys feature because of this)
> Your solution to use IsWindowVisible(GetConsoleWindow()) works for these  
> terminals (I've made simple test and it returns false for all of them),  
> but this check will not work for telnet (console app running through  
> telnet can use con/conout).

Thanks for testing those environments.  I can reproduce the distinctive
behavior when a Windows telnet client connects to a Windows telnet server.
When I connect to a Windows telnet server from a GNU/Linux system, I get the
normal invisible-console behavior.

I also get the invisible-console behavior in PowerShell ISE.

> Maybe this should be considered as a distinct bug with another patch  
> required? (I see no ideal solution for it yet. Probably it's possible to  
> detect not "ostype", but these terminals, though it would not be generic  
> too.)

Using stdin/stderr when we could have used the console is a mild loss; use
cases involving redirected output will need to account for the abnormality.
Interacting with a user-invisible console is a large loss; prompts will hang
indefinitely.  Therefore, the test should err on the side of stdin/stderr.

Since any change here seems to have its own trade-offs, yes, let's leave it
for a separate patch.

> And there is another issue with a console charset. When writing string  
> to a console CRT converts it to console encoding, but when reading input  
> back it doesn't. So it seems, there should be conversion from  
> ConsoleCP() to ACP() and then probably to UTF-8 to make postgres  
> utilities support national chars in passwords or usernames (with  
> createuser --interactive).

Yes, that also deserves attention.  I do not know whether converting to UTF-8
is correct.  Given a username <foo> containing non-ASCII characters, you
should be able to input <foo> the same way for both "psql -U <foo>" and the
createuser prompt.  We should also be thoughtful about backward compatibility.

> I think it can be fixed as another bug too.

Agreed.


> --- a/src/port/sprompt.c
> +++ b/src/port/sprompt.c
> @@ -60,8 +60,13 @@ simple_prompt(const char *prompt, int maxlen, bool echo)
>  	 * Do not try to collapse these into one "w+" mode file. Doesn't work on
>  	 * some platforms (eg, HPUX 10.20).
>  	 */
> +#ifdef WIN32
> +	termin = fopen("CONIN$", "r");
> +	termout = fopen("CONOUT$", "w+");

This definitely needs a block comment explaining the behaviors that led us to
select this particular implementation.

> +#else
>  	termin = fopen(DEVTTY, "r");
>  	termout = fopen(DEVTTY, "w");

This thread has illustrated that the DEVTTY abstraction does not suffice.  I
think we should remove it entirely.  Remove it from port.h; use literal
"/dev/tty" here; re-add it as a local #define near the one remaining use, with
an XXX comment indicating that the usage is broken.

If it would help, I can prepare a version with the comment changes and
refactoring I have in mind.

> +#endif
>  	if (!termin || !termout
>  #ifdef WIN32
>  	/* See DEVTTY comment for msys */

Thanks,
nm




^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
@ 2012-10-15 23:38               ` Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Noah Misch @ 2012-10-15 23:38 UTC (permalink / raw)
  To: Alexander Law <exclusion@gmail.com>; +Cc: Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs

On Mon, Oct 15, 2012 at 05:41:36AM -0400, Noah Misch wrote:
> > --- a/src/port/sprompt.c
> > +++ b/src/port/sprompt.c
> > @@ -60,8 +60,13 @@ simple_prompt(const char *prompt, int maxlen, bool echo)
> >  	 * Do not try to collapse these into one "w+" mode file. Doesn't work on
> >  	 * some platforms (eg, HPUX 10.20).
> >  	 */
> > +#ifdef WIN32
> > +	termin = fopen("CONIN$", "r");
> > +	termout = fopen("CONOUT$", "w+");
> 
> This definitely needs a block comment explaining the behaviors that led us to
> select this particular implementation.
> 
> > +#else
> >  	termin = fopen(DEVTTY, "r");
> >  	termout = fopen(DEVTTY, "w");
> 
> This thread has illustrated that the DEVTTY abstraction does not suffice.  I
> think we should remove it entirely.  Remove it from port.h; use literal
> "/dev/tty" here; re-add it as a local #define near the one remaining use, with
> an XXX comment indicating that the usage is broken.
> 
> If it would help, I can prepare a version with the comment changes and
> refactoring I have in mind.

Following an off-list ack from Alexander, here is that version.  No functional
differences from Alexander's latest version, and I have verified that it still
fixes the original test case.  I'm marking this Ready for Committer.

To test this on an English (United States) copy of Windows 7, I made two
configuration changes in the "Region and Language" control panel.  On the
"Administrative" tab, choose "Change system locale..." and select Russian
(Russia).  After the reboot, choose "Russian (Russia)" on the "Format" tab.
(Neither of these changes will affect the display language of most Windows UI
components.)  Finally, run "initdb -W testdatadir".  Before the patch, the
password prompt contained some line-drawing characters and other garbage.
Afterward, it matches the string in src/bin/initdb/po/ru.po.

Thanks,
nm

Attachments:

simple_prompt-nonascii-v3.patch (text/plain, 3.2K) download *** a/src/bin/psql/command.c --- b/src/bin/psql/command.c *************** *** 1043,1048 **** exec_command(const char *cmd, --- 1043,1059 ---- char *fname = psql_scan_slash_option(scan_state, OT_NORMAL, NULL, true); + #if defined(WIN32) && !defined(__CYGWIN__) + + /* + * XXX This does not work for all terminal environments or for output + * containing non-ASCII characters; see comments in simple_prompt(). + */ + #define DEVTTY "con" + #else + #define DEVTTY "/dev/tty" + #endif + expand_tilde(&fname); /* This scrolls off the screen when using /dev/tty */ success = saveHistory(fname ? fname : DEVTTY, -1, false, false); *** a/src/include/port.h --- b/src/include/port.h *************** *** 110,120 **** extern BOOL AddUserToTokenDacl(HANDLE hToken); #if defined(WIN32) && !defined(__CYGWIN__) #define DEVNULL "nul" - /* "con" does not work from the Msys 1.0.10 console (part of MinGW). */ - #define DEVTTY "con" #else #define DEVNULL "/dev/null" - #define DEVTTY "/dev/tty" #endif /* --- 110,117 ---- *** a/src/port/sprompt.c --- b/src/port/sprompt.c *************** *** 56,70 **** simple_prompt(const char *prompt, int maxlen, bool echo) if (!destination) return NULL; /* * Do not try to collapse these into one "w+" mode file. Doesn't work on * some platforms (eg, HPUX 10.20). */ ! termin = fopen(DEVTTY, "r"); ! termout = fopen(DEVTTY, "w"); if (!termin || !termout #ifdef WIN32 ! /* See DEVTTY comment for msys */ || (getenv("OSTYPE") && strcmp(getenv("OSTYPE"), "msys") == 0) #endif ) --- 56,97 ---- if (!destination) return NULL; + #ifdef WIN32 + + /* + * A Windows console has an "input code page" and an "output code page"; + * these usually match each other, but they rarely match the "Windows ANSI + * code page" defined at system boot and expected of "char *" arguments to + * Windows API functions. The Microsoft CRT write() implementation + * automatically converts text between these code pages when writing to a + * console. To identify such file descriptors, it calls GetConsoleMode() + * on the underlying HANDLE, which in turn requires GENERIC_READ access on + * the HANDLE. Opening termout in mode "w+" allows that detection to + * succeed. Otherwise, write() would not recognize the descriptor as a + * console, and non-ASCII characters would display incorrectly. + * + * XXX fgets() still receives text in the console's input code page. This + * makes non-ASCII credentials unportable. + */ + termin = fopen("CONIN$", "r"); + termout = fopen("CONOUT$", "w+"); + #else + /* * Do not try to collapse these into one "w+" mode file. Doesn't work on * some platforms (eg, HPUX 10.20). */ ! termin = fopen("/dev/tty", "r"); ! termout = fopen("/dev/tty", "w"); ! #endif if (!termin || !termout #ifdef WIN32 ! /* ! * Direct console I/O does not work from the MSYS 1.0.10 console. Writes ! * reach nowhere user-visible; reads block indefinitely. XXX This affects ! * most Windows terminal environments, including rxvt, mintty, Cygwin ! * xterm, Cygwin sshd, and PowerShell ISE. Switch to a more-generic test. ! */ || (getenv("OSTYPE") && strcmp(getenv("OSTYPE"), "msys") == 0) #endif )
^ permalink raw reply [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
@ 2012-10-18 15:46                 ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Alvaro Herrera @ 2012-10-18 15:46 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: Alexander Law <exclusion@gmail.com>; pgsql-bugs; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

Noah Misch escribió:

> Following an off-list ack from Alexander, here is that version.  No functional
> differences from Alexander's latest version, and I have verified that it still
> fixes the original test case.  I'm marking this Ready for Committer.

This seems good to me, but I'm not comfortable committing Windows stuff.
Andrew, Magnus, are you able to handle this?



-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services




^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2013-01-23 17:06                   ` Alexander Law <exclusion@gmail.com>
  2013-01-23 17:34                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 08:42                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  0 siblings, 2 replies; 26+ messages in thread

From: Alexander Law @ 2013-01-23 17:06 UTC (permalink / raw)
  To: pgsql-hackers <pgsql-hackers@postgresql.org>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; Noah Misch <noah@leadboat.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

Hello,
Please let me know if I can do something to get the bug fix 
(https://commitfest.postgresql.org/action/patch_view?id=902) committed.
I would like to fix other bugs related to postgres localization, but I 
am not sure yet how to do it.

Thanks in advance,
Alexander

18.10.2012 19:46, Alvaro Herrera wrote:
> Noah Misch escribió:
>
>> Following an off-list ack from Alexander, here is that version.  No functional
>> differences from Alexander's latest version, and I have verified that it still
>> fixes the original test case.  I'm marking this Ready for Committer.
> This seems good to me, but I'm not comfortable committing Windows stuff.
> Andrew, Magnus, are you able to handle this?
>
>
>



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
@ 2013-01-23 17:34                     ` Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-23 18:08                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-24 07:45                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  1 sibling, 2 replies; 26+ messages in thread

From: Tom Lane @ 2013-01-23 17:34 UTC (permalink / raw)
  To: Alexander Law <exclusion@gmail.com>; +Cc: pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Noah Misch <noah@leadboat.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

Alexander Law <exclusion@gmail.com> writes:
> Please let me know if I can do something to get the bug fix 
> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.

It's waiting on some Windows-savvy committer to pick it up, IMO.
(FWIW, I have no objection to the patch as given, but I am unqualified
to evaluate how sane it is on Windows.)

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-23 17:34                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-23 18:08                       ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 18:19                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  1 sibling, 1 reply; 26+ messages in thread

From: Alvaro Herrera @ 2013-01-23 18:08 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Noah Misch <noah@leadboat.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

Tom Lane escribió:
> Alexander Law <exclusion@gmail.com> writes:
> > Please let me know if I can do something to get the bug fix 
> > (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
> 
> It's waiting on some Windows-savvy committer to pick it up, IMO.
> (FWIW, I have no objection to the patch as given, but I am unqualified
> to evaluate how sane it is on Windows.)

I think part of the problem is that we no longer have many Windows-savvy
committers willing to spend time on Windows-specific patches; there are,
of course, people with enough knowledge, but they don't always
necessarily have much interest.  Note that I added Magnus and Andrew to
this thread because they are known to have contributed Windows-specific
improvements, but they have yet to followup on this thread *at all*.

I remember back when Windows support was added, one of the arguments in
its favor was "it's going to attract lots of new developers".  Yeah, right.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-23 17:34                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-23 18:08                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2013-01-23 18:19                         ` Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 26+ messages in thread

From: Andrew Dunstan @ 2013-01-23 18:19 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Noah Misch <noah@leadboat.com>; Magnus Hagander <magnus@hagander.net>


On 01/23/2013 01:08 PM, Alvaro Herrera wrote:
> Tom Lane escribió:
>> Alexander Law <exclusion@gmail.com> writes:
>>> Please let me know if I can do something to get the bug fix
>>> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
>> It's waiting on some Windows-savvy committer to pick it up, IMO.
>> (FWIW, I have no objection to the patch as given, but I am unqualified
>> to evaluate how sane it is on Windows.)
> I think part of the problem is that we no longer have many Windows-savvy
> committers willing to spend time on Windows-specific patches; there are,
> of course, people with enough knowledge, but they don't always
> necessarily have much interest.  Note that I added Magnus and Andrew to
> this thread because they are known to have contributed Windows-specific
> improvements, but they have yet to followup on this thread *at all*.
>
> I remember back when Windows support was added, one of the arguments in
> its favor was "it's going to attract lots of new developers".  Yeah, right.


I'm about to take a look at this one.

Note BTW that Craig Ringer has recently done some excellent work on 
Windows, and there are several other active non-committers (e.g. Noah) 
who comment on Windows too.

IIRC I never expected us to get a huge influx of developers from the 
Windows world. What I did expect was a lot of new users, and I think we 
have on fact got that.

cheers

andrew


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-23 17:34                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
@ 2013-01-24 07:45                       ` Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 11:57                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  1 sibling, 1 reply; 26+ messages in thread

From: Craig Ringer @ 2013-01-24 07:45 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Noah Misch <noah@leadboat.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

On 01/24/2013 01:34 AM, Tom Lane wrote:
> Alexander Law <exclusion@gmail.com> writes:
>> Please let me know if I can do something to get the bug fix 
>> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
> It's waiting on some Windows-savvy committer to pick it up, IMO.
I'm no committer, but I can work with Windows and know text encoding
issues fairly well. I'll take a look, though I can't do it immediately
as I have some other priority work. Should be able to in the next 24h.


-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-23 17:34                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 07:45                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
@ 2013-01-24 11:57                         ` Noah Misch <noah@leadboat.com>
  2013-01-24 12:11                           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Noah Misch @ 2013-01-24 11:57 UTC (permalink / raw)
  To: Craig Ringer <craig@2ndQuadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

On Thu, Jan 24, 2013 at 03:45:36PM +0800, Craig Ringer wrote:
> On 01/24/2013 01:34 AM, Tom Lane wrote:
> > Alexander Law <exclusion@gmail.com> writes:
> >> Please let me know if I can do something to get the bug fix 
> >> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
> > It's waiting on some Windows-savvy committer to pick it up, IMO.
> I'm no committer, but I can work with Windows and know text encoding
> issues fairly well. I'll take a look, though I can't do it immediately
> as I have some other priority work. Should be able to in the next 24h.

Feel free, but it's already Ready for Committer.  Also, Andrew has said he
plans to pick it up.  If in doubt, I think this patch is relatively solid in
terms of non-committer review.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-23 17:34                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Tom Lane <tgl@sss.pgh.pa.us>
  2013-01-24 07:45                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 11:57                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
@ 2013-01-24 12:11                           ` Craig Ringer <craig@2ndQuadrant.com>
  0 siblings, 0 replies; 26+ messages in thread

From: Craig Ringer @ 2013-01-24 12:11 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

On 01/24/2013 07:57 PM, Noah Misch wrote:
> On Thu, Jan 24, 2013 at 03:45:36PM +0800, Craig Ringer wrote:
>> On 01/24/2013 01:34 AM, Tom Lane wrote:
>>> Alexander Law <exclusion@gmail.com> writes:
>>>> Please let me know if I can do something to get the bug fix 
>>>> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
>>> It's waiting on some Windows-savvy committer to pick it up, IMO.
>> I'm no committer, but I can work with Windows and know text encoding
>> issues fairly well. I'll take a look, though I can't do it immediately
>> as I have some other priority work. Should be able to in the next 24h.
> Feel free, but it's already Ready for Committer.  Also, Andrew has said he
> plans to pick it up.  If in doubt, I think this patch is relatively solid in
> terms of non-committer review.
I'm happy with that; I'll look elsewhere. Thanks.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
@ 2013-01-24 08:42                     ` Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 13:50                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  1 sibling, 1 reply; 26+ messages in thread

From: Craig Ringer @ 2013-01-24 08:42 UTC (permalink / raw)
  To: Alexander Law <exclusion@gmail.com>; +Cc: pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Noah Misch <noah@leadboat.com>; Andrew Dunstan <andrew@dunslane.net>; Magnus Hagander <magnus@hagander.net>

On 01/24/2013 01:06 AM, Alexander Law wrote:
> Hello,
> Please let me know if I can do something to get the bug fix
> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
> I would like to fix other bugs related to postgres localization, but I
> am not sure yet how to do it.

For anyone looking for the history, the 1st post on this topic is here:

http://www.postgresql.org/message-id/E1S3twb-0004OY-4g@wrigleys.postgresql.org

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-24 08:42                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
@ 2013-01-24 13:50                       ` Andrew Dunstan <andrew@dunslane.net>
  2013-01-24 16:19                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  0 siblings, 1 reply; 26+ messages in thread

From: Andrew Dunstan @ 2013-01-24 13:50 UTC (permalink / raw)
  To: Craig Ringer <craig@2ndQuadrant.com>; +Cc: Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Noah Misch <noah@leadboat.com>; Magnus Hagander <magnus@hagander.net>


On 01/24/2013 03:42 AM, Craig Ringer wrote:
> On 01/24/2013 01:06 AM, Alexander Law wrote:
>> Hello,
>> Please let me know if I can do something to get the bug fix 
>> (https://commitfest.postgresql.org/action/patch_view?id=902) committed.
>> I would like to fix other bugs related to postgres localization, but 
>> I am not sure yet how to do it.
>
> For anyone looking for the history, the 1st post on this topic is here:
>
> http://www.postgresql.org/message-id/E1S3twb-0004OY-4g@wrigleys.postgresql.org


Yeah.

I'm happy enough with this patch. ISTM it's really a bug and should be 
backpatched, no?

cheers

andrew



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-24 08:42                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 13:50                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
@ 2013-01-24 16:19                         ` Noah Misch <noah@leadboat.com>
  2013-01-24 21:04                           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 1 reply; 26+ messages in thread

From: Noah Misch @ 2013-01-24 16:19 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: Craig Ringer <craig@2ndQuadrant.com>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Magnus Hagander <magnus@hagander.net>

On Thu, Jan 24, 2013 at 08:50:36AM -0500, Andrew Dunstan wrote:
> On 01/24/2013 03:42 AM, Craig Ringer wrote:
>> On 01/24/2013 01:06 AM, Alexander Law wrote:
>>> Hello,
>>> Please let me know if I can do something to get the bug fix  
>>> (https://commitfest.postgresql.org/action/patch_view?id=902) 
>>> committed.
>>> I would like to fix other bugs related to postgres localization, but  
>>> I am not sure yet how to do it.
>>
>> For anyone looking for the history, the 1st post on this topic is here:
>>
>> http://www.postgresql.org/message-id/E1S3twb-0004OY-4g@wrigleys.postgresql.org
>
>
> Yeah.
>
> I'm happy enough with this patch. ISTM it's really a bug and should be  
> backpatched, no?

It is a bug, yes.  I'm neutral on whether to backpatch.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-24 08:42                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 13:50                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  2013-01-24 16:19                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
@ 2013-01-24 21:04                           ` Andrew Dunstan <andrew@dunslane.net>
  2013-01-25 15:26                             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 26+ messages in thread

From: Andrew Dunstan @ 2013-01-24 21:04 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: Craig Ringer <craig@2ndQuadrant.com>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Magnus Hagander <magnus@hagander.net>


On 01/24/2013 11:19 AM, Noah Misch wrote:
> On Thu, Jan 24, 2013 at 08:50:36AM -0500, Andrew Dunstan wrote:
>> On 01/24/2013 03:42 AM, Craig Ringer wrote:
>>> On 01/24/2013 01:06 AM, Alexander Law wrote:
>>>> Hello,
>>>> Please let me know if I can do something to get the bug fix
>>>> (https://commitfest.postgresql.org/action/patch_view?id=902)
>>>> committed.
>>>> I would like to fix other bugs related to postgres localization, but
>>>> I am not sure yet how to do it.
>>> For anyone looking for the history, the 1st post on this topic is here:
>>>
>>> http://www.postgresql.org/message-id/E1S3twb-0004OY-4g@wrigleys.postgresql.org
>>
>> Yeah.
>>
>> I'm happy enough with this patch. ISTM it's really a bug and should be
>> backpatched, no?
> It is a bug, yes.  I'm neutral on whether to backpatch.
>

Well, that's what I did. :-)

cheers

andrew


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-24 08:42                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 13:50                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  2013-01-24 16:19                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2013-01-24 21:04                           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
@ 2013-01-25 15:26                             ` Peter Eisentraut <peter_e@gmx.net>
  2013-01-25 15:39                               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 1 reply; 26+ messages in thread

From: Peter Eisentraut @ 2013-01-25 15:26 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: Noah Misch <noah@leadboat.com>; Craig Ringer <craig@2ndQuadrant.com>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Magnus Hagander <magnus@hagander.net>

On 1/24/13 4:04 PM, Andrew Dunstan wrote:
> 
> On 01/24/2013 11:19 AM, Noah Misch wrote:
>> On Thu, Jan 24, 2013 at 08:50:36AM -0500, Andrew Dunstan wrote:
>>> On 01/24/2013 03:42 AM, Craig Ringer wrote:
>>>> On 01/24/2013 01:06 AM, Alexander Law wrote:
>>>>> Hello,
>>>>> Please let me know if I can do something to get the bug fix
>>>>> (https://commitfest.postgresql.org/action/patch_view?id=902)
>>>>> committed.
>>>>> I would like to fix other bugs related to postgres localization, but
>>>>> I am not sure yet how to do it.
>>>> For anyone looking for the history, the 1st post on this topic is here:
>>>>
>>>> http://www.postgresql.org/message-id/E1S3twb-0004OY-4g@wrigleys.postgresql.org
>>>>
>>>
>>> Yeah.
>>>
>>> I'm happy enough with this patch. ISTM it's really a bug and should be
>>> backpatched, no?
>> It is a bug, yes.  I'm neutral on whether to backpatch.
>>
> 
> Well, that's what I did. :-)

The 9.0 and 9.1 branches are now failing to build.





-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread

* Re: BUG #6510: A simple prompt is displayed using wrong charset
  2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
  2012-03-16 19:13 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-18 09:04   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-03-19 20:05     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@commandprompt.com>
  2012-03-20 19:50       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander LAW <exclusion@gmail.com>
  2012-10-10 11:05         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-14 06:35           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2012-10-15 09:41             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-15 23:38               ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2012-10-18 15:46                 ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alvaro Herrera <alvherre@2ndquadrant.com>
  2013-01-23 17:06                   ` Re: BUG #6510: A simple prompt is displayed using wrong charset Alexander Law <exclusion@gmail.com>
  2013-01-24 08:42                     ` Re: BUG #6510: A simple prompt is displayed using wrong charset Craig Ringer <craig@2ndQuadrant.com>
  2013-01-24 13:50                       ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  2013-01-24 16:19                         ` Re: BUG #6510: A simple prompt is displayed using wrong charset Noah Misch <noah@leadboat.com>
  2013-01-24 21:04                           ` Re: BUG #6510: A simple prompt is displayed using wrong charset Andrew Dunstan <andrew@dunslane.net>
  2013-01-25 15:26                             ` Re: BUG #6510: A simple prompt is displayed using wrong charset Peter Eisentraut <peter_e@gmx.net>
@ 2013-01-25 15:39                               ` Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 0 replies; 26+ messages in thread

From: Andrew Dunstan @ 2013-01-25 15:39 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Noah Misch <noah@leadboat.com>; Craig Ringer <craig@2ndQuadrant.com>; Alexander Law <exclusion@gmail.com>; pgsql-hackers <pgsql-hackers@postgresql.org>; Alvaro Herrera <alvherre@2ndquadrant.com>; Magnus Hagander <magnus@hagander.net>


On 01/25/2013 10:26 AM, Peter Eisentraut wrote:
> On 1/24/13 4:04 PM, Andrew Dunstan wrote:
>> On 01/24/2013 11:19 AM, Noah Misch wrote:
>>> On Thu, Jan 24, 2013 at 08:50:36AM -0500, Andrew Dunstan wrote:
>>>> On 01/24/2013 03:42 AM, Craig Ringer wrote:
>>>>> On 01/24/2013 01:06 AM, Alexander Law wrote:
>>>>>> Hello,
>>>>>> Please let me know if I can do something to get the bug fix
>>>>>> (https://commitfest.postgresql.org/action/patch_view?id=902)
>>>>>> committed.
>>>>>> I would like to fix other bugs related to postgres localization, but
>>>>>> I am not sure yet how to do it.
>>>>> For anyone looking for the history, the 1st post on this topic is here:
>>>>>
>>>>> http://www.postgresql.org/message-id/E1S3twb-0004OY-4g@wrigleys.postgresql.org
>>>>>
>>>> Yeah.
>>>>
>>>> I'm happy enough with this patch. ISTM it's really a bug and should be
>>>> backpatched, no?
>>> It is a bug, yes.  I'm neutral on whether to backpatch.
>>>
>> Well, that's what I did. :-)
> The 9.0 and 9.1 branches are now failing to build.


Yeah, sorry, working on it.

cheers

andrew


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 26+ messages in thread


end of thread, other threads:[~2013-01-25 15:39 UTC | newest]

Thread overview: 26+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03 18:44 BUG #6510: A simple prompt is displayed using wrong charset exclusion@gmail.com
2012-03-16 19:13 ` Alvaro Herrera <alvherre@commandprompt.com>
2012-03-18 09:04   ` Alexander LAW <exclusion@gmail.com>
2012-03-19 20:05     ` Alvaro Herrera <alvherre@commandprompt.com>
2012-03-20 19:50       ` Alexander LAW <exclusion@gmail.com>
2012-03-23 15:32         ` Alvaro Herrera <alvherre@commandprompt.com>
2012-10-10 11:05         ` Noah Misch <noah@leadboat.com>
2012-10-14 06:35           ` Alexander Law <exclusion@gmail.com>
2012-10-14 16:10             ` Tom Lane <tgl@sss.pgh.pa.us>
2012-10-15 09:48               ` Noah Misch <noah@leadboat.com>
2012-10-15 09:41             ` Noah Misch <noah@leadboat.com>
2012-10-15 23:38               ` Noah Misch <noah@leadboat.com>
2012-10-18 15:46                 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-01-23 17:06                   ` Alexander Law <exclusion@gmail.com>
2013-01-23 17:34                     ` Tom Lane <tgl@sss.pgh.pa.us>
2013-01-23 18:08                       ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-01-23 18:19                         ` Andrew Dunstan <andrew@dunslane.net>
2013-01-24 07:45                       ` Craig Ringer <craig@2ndQuadrant.com>
2013-01-24 11:57                         ` Noah Misch <noah@leadboat.com>
2013-01-24 12:11                           ` Craig Ringer <craig@2ndQuadrant.com>
2013-01-24 08:42                     ` Craig Ringer <craig@2ndQuadrant.com>
2013-01-24 13:50                       ` Andrew Dunstan <andrew@dunslane.net>
2013-01-24 16:19                         ` Noah Misch <noah@leadboat.com>
2013-01-24 21:04                           ` Andrew Dunstan <andrew@dunslane.net>
2013-01-25 15:26                             ` Peter Eisentraut <peter_e@gmx.net>
2013-01-25 15:39                               ` Andrew Dunstan <andrew@dunslane.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox