Commits

Steve Borho committed 6ec4424

hglib: remove NULLs from toutf output

GTK seems touchy about embedded NULLs. Since toutf is almost always used
to prep strings for GTK, it seems best to strip them out here.

Closes #885

Comments (0)

Files changed (1)

tortoisehg/util/hglib.py

 
     Return 'str' type string.
     """
-    return tounicode(s).encode('utf-8')
+    return tounicode(s).encode('utf-8').replace('\0','')
 
 def fromutf(s):
     """