* 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. */
| 2563 | * Every process in a given system will find the same value at all times. |
| 2564 | */ |
| 2565 | static int |
| 2566 | GetACPEncoding(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 |
no test coverage detected