##// END OF EJS Templates
py3: manually escape control character to be embedded in win filename error
Yuya Nishihara -
r34356:f435097d default
parent child Browse files
Show More
@@ -1334,8 +1334,8 b' def checkwinfilename(path):'
1334 return _("filename contains '%s', which is reserved "
1334 return _("filename contains '%s', which is reserved "
1335 "on Windows") % c
1335 "on Windows") % c
1336 if ord(c) <= 31:
1336 if ord(c) <= 31:
1337 return _("filename contains %r, which is invalid "
1337 return _("filename contains '%s', which is invalid "
1338 "on Windows") % c
1338 "on Windows") % escapestr(c)
1339 base = n.split('.')[0]
1339 base = n.split('.')[0]
1340 if base and base.lower() in _winreservednames:
1340 if base and base.lower() in _winreservednames:
1341 return _("filename contains '%s', which is reserved "
1341 return _("filename contains '%s', which is reserved "
General Comments 0
You need to be logged in to leave comments. Login now