Provide a locale independent method to read the current code-page.
commiteb197a773b6f9a6bd367661c98a0c9277bb42f0c
authorPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 28 Mar 2010 12:45:10 +0000 (28 13:45 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 11 Apr 2010 12:54:47 +0000 (11 13:54 +0100)
tree8b39c3463c8f780a5c93177cf8b85c02e42f3df3
parentee245b889ed752acc66fbe082cef86e755651412
Provide a locale independent method to read the current code-page.

Windows provides the chcp command which returns the current oem codepage
but the string returned depends on the language locale which complicates
parsing. This patch adds a utility command to call the Win32 APIs and
return this in a locale independent manner.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
cmd/git.cmd
share/WinGit/copy-files.sh
src/getcp/Makefile [new file with mode: 0644]
src/getcp/getcp.c [new file with mode: 0644]
src/getcp/release.sh [new file with mode: 0644]