From 883dd8ab3f86685f963ffd99c129360de255f9c1 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 26 Apr 2021 18:17:03 +0200 Subject: [PATCH 1/2] fix: no special character replacement in fileName --- index.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 8a24469..99a0905 100644 --- a/index.bs +++ b/index.bs @@ -690,8 +690,7 @@ user agents must run the following steps: 2. Let |n| be a new string of the same size as the {{fileName}} argument to the constructor. - Copy every character from {{fileName}} to |n|, - replacing any "/" character (U+002F SOLIDUS) with a ":" (U+003A COLON). + Copy every character from {{fileName}} to |n|. Note: Underlying OS filesystems use differing conventions for file name; with constructed files, mandating UTF-16 lessens ambiquity when file names are converted to byte sequences. From d2d620000018e4a7d8b72dbece27fadddc57734e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 27 Apr 2021 13:54:30 +0200 Subject: [PATCH 2/2] simplify --- index.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 99a0905..988ba3e 100644 --- a/index.bs +++ b/index.bs @@ -689,8 +689,7 @@ user agents must run the following steps: and {{File/File(fileBits, fileName, options)/options}}. -2. Let |n| be a new string of the same size as the {{fileName}} argument to the constructor. - Copy every character from {{fileName}} to |n|. +2. Let |n| be the {{fileName}} argument to the constructor. Note: Underlying OS filesystems use differing conventions for file name; with constructed files, mandating UTF-16 lessens ambiquity when file names are converted to byte sequences.