hang me
parent
a2be67cf6c
commit
d8c3a38f8d
|
@ -1224,7 +1224,7 @@ class App(object):
|
||||||
descriptor, path = tempfile.mkstemp()
|
descriptor, path = tempfile.mkstemp()
|
||||||
with open(path, "w") as _:
|
with open(path, "w") as _:
|
||||||
_.write(init_body)
|
_.write(init_body)
|
||||||
run("%s %s" % (self.prefs["editor"], path), shell=True)
|
run("export LANG=en_US.UTF-8; %s %s" % (self.prefs["editor"], path), shell=True)
|
||||||
with open(path) as _:
|
with open(path) as _:
|
||||||
body = _.read()
|
body = _.read()
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
|
|
Loading…
Reference in New Issue