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

  • Participants
  • Parent commits ac7e833
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/

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