changeset 34201 | 310c151a0705 |
parent 34199 | 90b0e1639fd4 |
child 34202 | d47749807464 |
34200:112f118ecb00 | 34201:310c151a0705 |
---|---|
370 while pos < l: |
370 while pos < l: |
371 try: |
371 try: |
372 c = encoding.getutf8char(path, pos) |
372 c = encoding.getutf8char(path, pos) |
373 pos += len(c) |
373 pos += len(c) |
374 except ValueError: |
374 except ValueError: |
375 c = '%%%02X' % ord(path[pos]) |
375 c = '%%%02X' % ord(path[pos:pos + 1]) |
376 pos += 1 |
376 pos += 1 |
377 s += c |
377 s += c |
378 |
378 |
379 u = s.decode('utf-8') |
379 u = s.decode('utf-8') |
380 |
380 |