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

Function localeIsUTF8

agent/reconnectingpty/reconnectingpty.go:70–73  ·  view source on GitHub ↗
(locale string)

Source from the content-addressed store, hash-verified

68}
69
70func localeIsUTF8(locale string) bool {
71 lower := strings.ToLower(locale)
72 return strings.Contains(lower, "utf-8") || strings.Contains(lower, "utf8")
73}
74
75func hasNonEmptyEnv(env []string, name string) bool {
76 value, ok := envValue(env, name)

Callers 1

effectiveLocaleIsUTF8Function · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected