Peter Eisentraut <[EMAIL PROTECTED]> writes:
> When the server wants to send an error message to the client, it will
> convert them from the server to the client encoding.  The English
> messages are ASCII, so this will work, because server encodings are
> required to be ASCII compatible.  The result of the gettext calls,
> however, is encoded in EUC-JP, so the server will take the EUC-JP
> bytes and attempt to do a UTF-8 to SJIS conversion on them.  This will
> cause a crash.

The problem here basically comes from the fact that gettext looks to
LC_CTYPE to decide what encoding it's supposed to convert to (and I
suppose it punts when LC_CTYPE = C).  Does it have a way by which we
could override that, to tell it the actual DB encoding regardless
of the locale environment?

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to