未验证 提交 251b8096 编写于 作者: M Mort Yao

util.fs: \t not allowed in FAT (close #2646)

上级 4b7753f2
......@@ -13,6 +13,7 @@ def legitimize(text, os=detect_os()):
ord('|'): '-',
})
# FIXME: do some filesystem detection
if os == 'windows' or os == 'cygwin' or os == 'wsl':
# Windows (non-POSIX namespace)
text = text.translate({
......@@ -28,6 +29,7 @@ def legitimize(text, os=detect_os()):
ord('>'): '-',
ord('['): '(',
ord(']'): ')',
ord('\t'): ' ',
})
else:
# *nix
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册