Re: Problem of a server gettext message. - Mailing list pgsql-hackers

From Hiroshi Saito
Subject Re: Problem of a server gettext message.
Date
Msg-id 09a301c83bba$6eb216e0$c601a8c0@HP22720319231
Whole thread Raw
In response to Problem of a server gettext message.  ("Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>)
List pgsql-hackers
From: "Tom Lane" <tgl@sss.pgh.pa.us>

> Are you sure about that?  Why would gettext be converting to SJIS, when
> SJIS is nowhere in the environment it can see?  I believe that Peter's
> hypothesis is that gettext is leaving the string in EUC_JP because
> it sees locale = C and so has no basis for doing any conversion.
> 
> We still end up with a failure, because the basic problem is that the
> string isn't UTF8, but it's important to be sure we understand the exact
> mechanism.

Um, It is a simple GetText program. 
http://winpg.jp/~saito/pg83/message_check/gtext.c

for example..
http://winpg.jp/~saito/pg83/message_check/gettext_932.png
http://winpg.jp/~saito/pg83/message_check/C_message.txt
http://winpg.jp/~saito/pg83/message_check/Non_message.txt
http://winpg.jp/~saito/pg83/message_check/UTF8_message.txt
http://winpg.jp/~saito/pg83/message_check/Japanese_message.txt
All are SJIS outputs.

However, chcp 1252
http://winpg.jp/~saito/pg83/message_check/gettext_1252.png

Regards,
Hiroshi Saito



pgsql-hackers by date:

Previous
From: "Pavan Deolasee"
Date:
Subject: Re: Release Note Changes
Next
From: Magnus Hagander
Date:
Subject: Re: buildenv.pl/buildenv.bat