Re: Problem of a server gettext message.

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem of a server gettext message.
Date: 2007-12-11 05:55:28
Message-ID: 09a301c83bba$6eb216e0$c601a8c0@HP22720319231
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-12-11 08:41:10 Re: partitioned table query question
Previous Message Robert Treat 2007-12-11 05:14:20 Re: partitioned table query question