Hello
I found bug in ecpg concerning processing of the multi-byte character-code.
I reported as bug#2956 before.
The problem is that ecpg is NOT aware of multibyte character
If the multibyte character-code includes 0xc5('\' in ASCII),
ecpg escapes 0xc5 by mistake.
I found this problem when the client-encoding is set to SJIS,
that is one of the Japanese character set.
In SJIS, some characters have 0xc5 as the second byte.
Attached is the patch to fix this problem.
Patch replaces the original character string escape routine
of ecpg with that of libpq.
Regards,