lib: handle superscript variants on windows device · nodejs/node@e91b54d · GitHub
Skip to content

Commit e91b54d

Browse files
committed
lib: handle superscript variants on windows device
Windows recognizes the 8-bit [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) superscript digits ¹, ², and ³ as digits and treats them as valid parts of COM# and LPT# device names, making them reserved in every directory. Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: #59261 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent f9f3dc9 commit e91b54d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

lib/path.js

Lines changed: 2 additions & 0 deletions

test/parallel/test-path-win32-normalize-device-names.js

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)