Show More
@@ -193,22 +193,22 b' def _auxencode(path, dotencode):' | |||
|
193 | 193 | if not n: |
|
194 | 194 | continue |
|
195 | 195 | if dotencode and n[0] in '. ': |
|
196 | n = "~%02x" % ord(n[0]) + n[1:] | |
|
196 | n = "~%02x" % ord(n[0:1]) + n[1:] | |
|
197 | 197 | path[i] = n |
|
198 | 198 | else: |
|
199 | 199 | l = n.find('.') |
|
200 | 200 | if l == -1: |
|
201 | 201 | l = len(n) |
|
202 | 202 | if ((l == 3 and n[:3] in _winres3) or |
|
203 | (l == 4 and n[3] <= '9' and n[3] >= '1' | |
|
203 | (l == 4 and n[3:4] <= '9' and n[3:4] >= '1' | |
|
204 | 204 | and n[:3] in _winres4)): |
|
205 | 205 | # encode third letter ('aux' -> 'au~78') |
|
206 | ec = "~%02x" % ord(n[2]) | |
|
206 | ec = "~%02x" % ord(n[2:3]) | |
|
207 | 207 | n = n[0:2] + ec + n[3:] |
|
208 | 208 | path[i] = n |
|
209 | 209 | if n[-1] in '. ': |
|
210 | 210 | # encode last period or space ('foo...' -> 'foo..~2e') |
|
211 | path[i] = n[:-1] + "~%02x" % ord(n[-1]) | |
|
211 | path[i] = n[:-1] + "~%02x" % ord(n[-1:]) | |
|
212 | 212 | return path |
|
213 | 213 | |
|
214 | 214 | _maxstorepathlen = 120 |
General Comments 0
You need to be logged in to leave comments.
Login now