diff options
author | Noah Misch <noah@leadboat.com> | 2015-08-14 20:23:13 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-08-14 20:23:42 -0400 |
commit | a0104e08079dc5e7b903c7d6906cc6b64c4ad041 (patch) | |
tree | cb9d76b47e8109e865c368f372022e5f261b8f83 | |
parent | f988da953945136c8e511550226884dcbebe5b6b (diff) | |
download | postgresql-a0104e08079dc5e7b903c7d6906cc6b64c4ad041.tar.gz postgresql-a0104e08079dc5e7b903c7d6906cc6b64c4ad041.zip |
Encoding PG_UHC is code page 949.
This fixes presentation of non-ASCII messages to the Windows event log
and console in rare cases involving Korean locale. Processes like the
postmaster and checkpointer, but not processes attached to databases,
were affected. Back-patch to 9.4, where MessageEncoding was introduced.
The problem exists in all supported versions, but this change has no
effect in the absence of the code recognizing PG_UHC MessageEncoding.
Noticed while investigating bug #13427 from Dmitri Bourlatchkov.
-rw-r--r-- | src/backend/utils/mb/encnames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/mb/encnames.c b/src/backend/utils/mb/encnames.c index 38fae001eb2..a1768954ba6 100644 --- a/src/backend/utils/mb/encnames.c +++ b/src/backend/utils/mb/encnames.c @@ -344,7 +344,7 @@ const pg_enc2name pg_enc2name_tbl[] = DEF_ENC2NAME(SJIS, 932), DEF_ENC2NAME(BIG5, 950), DEF_ENC2NAME(GBK, 936), - DEF_ENC2NAME(UHC, 0), + DEF_ENC2NAME(UHC, 949), DEF_ENC2NAME(GB18030, 54936), DEF_ENC2NAME(JOHAB, 0), DEF_ENC2NAME(SHIFT_JIS_2004, 932) |