From 7250990196ab0306f16b639feefbbca4d5323080 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Tue, 1 Apr 2025 13:39:28 +1100 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 Prior to this, pkg.go.dev would reject the repo (due to an error from golang.org/x/mod/module). See https://go.dev/play/p/cGG7piSw1Wl and https://proxy.golang.org/github.com/google/wuffs/@v/v0.3.4.info also said: not found: create zip: test/data/non-ascii/😻.txt: malformed file path "test/data/non-ascii/😻.txt": invalid char '😻' --- 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).