aboutsummaryrefslogtreecommitdiff
path: root/src/port/dirmod.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-12-04 22:23:40 +0000
committerBruce Momjian <bruce@momjian.us>2006-12-04 22:23:40 +0000
commit1e22e605050eded6ed49f049678782dba9e864cf (patch)
treed4081c43de8e4bb2eb0a519a56a6c76c29f661cf /src/port/dirmod.c
parent6cd9a58480e37e11adf7fa7d406ba118d2a7e4e5 (diff)
downloadpostgresql-1e22e605050eded6ed49f049678782dba9e864cf.tar.gz
postgresql-1e22e605050eded6ed49f049678782dba9e864cf.zip
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
Diffstat (limited to 'src/port/dirmod.c')
-rw-r--r--src/port/dirmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 3934b5cf7dd..5f4f97e9c1a 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.44 2006/11/08 20:12:05 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.45 2006/12/04 22:23:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -254,7 +254,7 @@ pgsymlink(const char *oldpath, const char *newpath)
errno = 0;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, GetLastError(),
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
(LPSTR) & msg, 0, NULL);
#ifndef FRONTEND
ereport(ERROR,