Show More
@@ -228,7 +228,11 b" if sys.platform == 'darwin':" | |||||
228 | try: |
|
228 | try: | |
229 | return encoding.asciilower(path) # exception for non-ASCII |
|
229 | return encoding.asciilower(path) # exception for non-ASCII | |
230 | except UnicodeDecodeError: |
|
230 | except UnicodeDecodeError: | |
231 | pass |
|
231 | return normcasefallback(path) | |
|
232 | ||||
|
233 | normcasespec = encoding.normcasespecs.lower | |||
|
234 | ||||
|
235 | def normcasefallback(path): | |||
232 | try: |
|
236 | try: | |
233 | u = path.decode('utf-8') |
|
237 | u = path.decode('utf-8') | |
234 | except UnicodeDecodeError: |
|
238 | except UnicodeDecodeError: |
General Comments 0
You need to be logged in to leave comments.
Login now