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

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

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