Show More
@@ -1196,7 +1196,7 class ui(object): | |||
|
1196 | 1196 | dir=rdir) |
|
1197 | 1197 | try: |
|
1198 | 1198 | f = os.fdopen(fd, pycompat.sysstr("w")) |
|
1199 | f.write(text) | |
|
1199 | f.write(encoding.strfromlocal(text)) | |
|
1200 | 1200 | f.close() |
|
1201 | 1201 | |
|
1202 | 1202 | environ = {'HGUSER': user} |
@@ -1219,7 +1219,7 class ui(object): | |||
|
1219 | 1219 | blockedtag='editor') |
|
1220 | 1220 | |
|
1221 | 1221 | f = open(name) |
|
1222 | t = f.read() | |
|
1222 | t = encoding.strtolocal(f.read()) | |
|
1223 | 1223 | f.close() |
|
1224 | 1224 | finally: |
|
1225 | 1225 | os.unlink(name) |
General Comments 0
You need to be logged in to leave comments.
Login now