In filenames, macOS translates Ä (U+00c4, c3 84) to Ä (U+0041 U+0308, 41 cc 88).
This causes problems for run.go's crude rules for testing the compiler.
Fixes #53954.
Change-Id: I850421cbf07e022ca5ff8122e0fb4e80deb55adf
Reviewed-on: https://go-review.googlesource.com/c/go/+/418334
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
+++ /dev/null
-package Äfoo
-
-var ÄbarV int = 101
-
-func Äbar(x int) int {
- defer func() { ÄbarV += 3 }()
- return Äblix(x)
-}
-
-func Äblix(x int) int {
- defer func() { ÄbarV += 9 }()
- return ÄbarV + x
-}
+++ /dev/null
-package main
-
-import (
- "fmt"
-
- "./Äfoo"
- Äblix "./Äfoo"
-)
-
-func main() {
- fmt.Printf("Äfoo.Äbar(33) returns %v\n", Äfoo.Äbar(33))
- fmt.Printf("Äblix.Äbar(33) returns %v\n", Äblix.Äbar(33))
-}
--- /dev/null
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package Þfoo
+
+var ÞbarV int = 101
+
+func Þbar(x int) int {
+ defer func() { ÞbarV += 3 }()
+ return Þblix(x)
+}
+
+func Þblix(x int) int {
+ defer func() { ÞbarV += 9 }()
+ return ÞbarV + x
+}
--- /dev/null
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+import (
+ "fmt"
+
+ "./Þfoo"
+ Þblix "./Þfoo"
+)
+
+func main() {
+ fmt.Printf("Þfoo.Þbar(33) returns %v\n", Þfoo.Þbar(33))
+ fmt.Printf("Þblix.Þbar(33) returns %v\n", Þblix.Þbar(33))
+}