Skip to content

Commit c69f391

Browse files
committed
Add CP_... constants
Signed-off-by: Simon Rozman <[email protected]>
1 parent 7611bb9 commit c69f391

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

winnls.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2010 The win Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// +build windows
6+
7+
package win
8+
9+
const (
10+
// Code Page Default Values.
11+
// Please Use Unicode, either UTF-16 (as in WCHAR) or UTF-8 (code page CP_ACP)
12+
CP_ACP = 0 // default to ANSI code page
13+
CP_OEMCP = 1 // default to OEM code page
14+
CP_MACCP = 2 // default to MAC code page
15+
CP_THREAD_ACP = 3 // current thread's ANSI code page
16+
CP_SYMBOL = 42 // SYMBOL translations
17+
18+
CP_UTF7 = 65000 // UTF-7 translation
19+
CP_UTF8 = 65001 // UTF-8 translation
20+
)

0 commit comments

Comments
 (0)