]> granicus.if.org Git - postgresql/commit
Patch of Win32 Encoding problem for server messages using
authorBruce Momjian <bruce@momjian.us>
Mon, 4 Dec 2006 22:23:40 +0000 (22:23 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 4 Dec 2006 22:23:40 +0000 (22:23 +0000)
commit1e22e605050eded6ed49f049678782dba9e864cf
treed4081c43de8e4bb2eb0a519a56a6c76c29f661cf
parent6cd9a58480e37e11adf7fa7d406ba118d2a7e4e5
Patch of Win32 Encoding problem for server messages using
FormatMessage() (This should have been in 8.2.0, patched to 8.2.X and
HEAD):

I think this problem to be complex....
http://archives.postgresql.org/pgsql-hackers/2006-11/msg00042.php

FormatMessage of windows cannot consider the encoding of the database.
However, I should try the solution now. It is necessary to clear the
problem.

Multi character-code exists together in message and log. It doesn't
consider
the data base encoding that the user intended....

The user in multi-byte country can try this.
http://inet.winpg.jp/~saito/pg_bug/MessageCheck.c

That is, it is likely to become it in this manner.(Japanese)
http://inet.winpg.jp/~saito/pg_bug/FormatMessage998.png

Hiroshi Saito
src/backend/port/dynloader/win32.c
src/backend/port/win32/socket.c
src/interfaces/libpq/win32.c
src/port/dirmod.c