Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

qlib: write edited file contents in local encoding as binary

Changeset a053f539fcd2

Parent 3247147ae98e

by Steve Borho

Changes to one file · Browse files at a053f539fcd2 Showing diff from parent 3247147ae98e Diff from another changeset...

 
330
331
332
333
334
 
 
335
336
337
 
330
331
332
 
 
333
334
335
336
337
@@ -330,8 +330,8 @@
  dialog.restoreGeometry(s.value(geomname).toByteArray())   ret = dialog.exec_()   if ret == QtGui.QDialog.Accepted: - f = util.atomictempfile(filename, 'w', createmode=None) - f.write(editor.text()) + f = util.atomictempfile(filename, 'wb', createmode=None) + f.write(hglib.fromunicode(editor.text()))   f.rename()   s.setValue(geomname, dialog.saveGeometry())   except EnvironmentError, e: