MCPcopy Create free account
hub / github.com/coder/coder / terminalUTF8Locale

Function terminalUTF8Locale

agent/reconnectingpty/reconnectingpty.go:51–56  ·  view source on GitHub ↗

terminalUTF8Locale returns a widely available UTF-8 character locale for the host OS.

()

Source from the content-addressed store, hash-verified

49
50// terminalUTF8Locale returns a widely available UTF-8 character locale for the host OS.
51func terminalUTF8Locale() string {
52 if runtime.GOOS == "darwin" {
53 return "UTF-8"
54 }
55 return "C.UTF-8"
56}
57
58// effectiveLocaleIsUTF8 reports whether the locale precedence chain resolves to UTF-8.
59func effectiveLocaleIsUTF8(env []string) bool {

Callers 1

withTerminalEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected