Skip to content

Commit

Permalink
Add CP_... constants
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rozman <simon@rozman.si>
  • Loading branch information
rozmansi committed Nov 11, 2020
1 parent 7611bb9 commit c69f391
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions winnls.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2010 The win Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build windows

package win

const (
// Code Page Default Values.
// Please Use Unicode, either UTF-16 (as in WCHAR) or UTF-8 (code page CP_ACP)
CP_ACP = 0 // default to ANSI code page
CP_OEMCP = 1 // default to OEM code page
CP_MACCP = 2 // default to MAC code page
CP_THREAD_ACP = 3 // current thread's ANSI code page
CP_SYMBOL = 42 // SYMBOL translations

CP_UTF7 = 65000 // UTF-7 translation
CP_UTF8 = 65001 // UTF-8 translation
)

0 comments on commit c69f391

Please sign in to comment.