##// END OF EJS Templates
Use text rather than binary mode for editing commit messages
Stephen Darnell -
r2206:c74e91e8 default
parent child Browse files
Show More
@@ -242,7 +242,8 b' class ui(object):'
242 242 def debug(self, *msg):
243 243 if self.debugflag: self.write(*msg)
244 244 def edit(self, text, user):
245 (fd, name) = tempfile.mkstemp(prefix="hg-editor-", suffix=".txt")
245 (fd, name) = tempfile.mkstemp(prefix="hg-editor-", suffix=".txt",
246 text=True)
246 247 try:
247 248 f = os.fdopen(fd, "w")
248 249 f.write(text)
General Comments 0
You need to be logged in to leave comments. Login now