Re: [PATCH] Patch to fix a crash of psql - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [PATCH] Patch to fix a crash of psql
Date
Msg-id 20121201.015539.1981741386316893807.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: [PATCH] Patch to fix a crash of psql  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
> I think the message should be more precise.  Nobody will know what an
> "encoding conflict" is.  The error condition is "last multibyte
> character ran over end of file" or something like that, which should be
> clearer.

"last multibyte character ran over" is not precise at all because the
error was caused by each byte in the file confused PQmblen, not just
last multibyte character. However to explain those in the messgae is
too technical for users, I'm afraid. Maybe just "encoding mismatch
detected. please make sure that input file encoding is SJIS" or
something like that?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [PATCH] Patch to fix a crash of psql
Next
From: Andrew Dunstan
Date:
Subject: Re: WIP json generation enhancements