MCPcopy Create free account
hub / github.com/apache/cloudberry / GetACPEncoding

Function GetACPEncoding

src/backend/utils/error/elog.c:2565–2574  ·  view source on GitHub ↗

* Get the PostgreSQL equivalent of the Windows ANSI code page. "ANSI" system * interfaces (e.g. CreateFileA()) expect string arguments in this encoding. * Every process in a given system will find the same value at all times. */

Source from the content-addressed store, hash-verified

2563 * Every process in a given system will find the same value at all times.
2564 */
2565static int
2566GetACPEncoding(void)
2567{
2568 static int encoding = -2;
2569
2570 if (encoding == -2)
2571 encoding = pg_codepage_to_encoding(GetACP());
2572
2573 return encoding;
2574}
2575
2576/*
2577 * Write a message line to the windows event log

Callers 1

write_eventlogFunction · 0.70

Calls 1

pg_codepage_to_encodingFunction · 0.85

Tested by

no test coverage detected