##// END OF EJS Templates
encoding: handle empty string in toutf8
Matt Mackall -
r22425:6fd944c2 default
parent child Browse files
Show More
@@ -336,7 +336,7 b' def toutf8b(s):'
336 336 return s._utf8
337 337
338 338 try:
339 if s.decode('utf-8'):
339 s.decode('utf-8')
340 340 return s
341 341 except UnicodeDecodeError:
342 342 # surrogate-encode any characters that don't round-trip
General Comments 0
You need to be logged in to leave comments. Login now