Skip to content

Commit

Permalink
Do not perform special character replacement in fileName
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Apr 27, 2021
1 parent d56cd86 commit a7f2705
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.bs
Expand Up @@ -689,9 +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|,
replacing any "/" character (U+002F SOLIDUS) with a ":" (U+003A COLON).
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 <a>byte</a> sequences.
Expand Down

0 comments on commit a7f2705

Please sign in to comment.