From e7b15476b814ac8ccf5e8c61d3475f9ba40db9b5 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 11 Jul 2026 20:33:41 +1000 Subject: [PATCH] =?UTF-8?q?test/data:=20rename=20non-ascii/=F0=9F=98=BB.tx?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This backports commit 7250990196ab0306f16b639feefbbca4d5323080 from the main branch (working on an unstable v0.4) to the v0.3 branch. --- test/data/non-ascii/astral-𝔸.txt | 7 +++++++ test/data/non-ascii/{αβ.txt => greek-αβ.txt} | 0 test/data/non-ascii/😻.txt | 3 --- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 test/data/non-ascii/astral-𝔸.txt rename test/data/non-ascii/{αβ.txt => greek-αβ.txt} (100%) delete mode 100644 test/data/non-ascii/😻.txt diff --git a/test/data/non-ascii/astral-𝔸.txt b/test/data/non-ascii/astral-𝔸.txt new file mode 100644 index 00000000..8ad2a041 --- /dev/null +++ b/test/data/non-ascii/astral-𝔸.txt @@ -0,0 +1,7 @@ +𝔸 U+1D538 MATHEMATICAL DOUBLE-STRUCK CAPITAL A. UTF-8: [F0 9D 94 B8]. + +This code point is outside of the Unicode BMP (Basic Multilingual Plane), but +its Unicode Category is Lu (Letter, uppercase), so it is still a valid file +path in terms of pkg.go.dev and its golang.org/x/mod/module package: + +https://github.com/golang/mod/blob/dc121ce20ffab6bb810a0f231cfa9c24d3e51b29/module/module.go#L293 diff --git a/test/data/non-ascii/αβ.txt b/test/data/non-ascii/greek-αβ.txt similarity index 100% rename from test/data/non-ascii/αβ.txt rename to test/data/non-ascii/greek-αβ.txt diff --git a/test/data/non-ascii/😻.txt b/test/data/non-ascii/😻.txt deleted file mode 100644 index 98aeba7a..00000000 --- a/test/data/non-ascii/😻.txt +++ /dev/null @@ -1,3 +0,0 @@ -😻 U+1F63B SMILING CAT FACE WITH HEART-SHAPED EYES. UTF-8: [F0 9F 98 BB]. - -This code point is outside of the Unicode BMP (Basic Multilingual Plane).