Skip to content

Commit ec79978

Browse files
committed
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.
1 parent 43adc7a commit ec79978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/mb/encnames.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ const pg_enc2name pg_enc2name_tbl[] =
344344
DEF_ENC2NAME(SJIS, 932),
345345
DEF_ENC2NAME(BIG5, 950),
346346
DEF_ENC2NAME(GBK, 936),
347-
DEF_ENC2NAME(UHC, 0),
347+
DEF_ENC2NAME(UHC, 949),
348348
DEF_ENC2NAME(GB18030, 54936),
349349
DEF_ENC2NAME(JOHAB, 0),
350350
DEF_ENC2NAME(SHIFT_JIS_2004, 932)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy