##// END OF EJS Templates
encoding: protect against non-ascii default encoding...
Cesar Mena -
r16493:72c6240a stable
parent child Browse files
Show More
@@ -169,7 +169,7 b' def lower(s):'
169 "best-effort encoding-aware case-folding of local string s"
169 "best-effort encoding-aware case-folding of local string s"
170 try:
170 try:
171 return s.encode('ascii').lower()
171 return s.encode('ascii').lower()
172 except UnicodeDecodeError:
172 except UnicodeError:
173 pass
173 pass
174 try:
174 try:
175 if isinstance(s, localstr):
175 if isinstance(s, localstr):
General Comments 0
You need to be logged in to leave comments. Login now