mirror of https://github.com/zlatinb/muwire
UTF-8 in props of cli
parent
86894f242b
commit
309cbcc580
|
@ -82,14 +82,14 @@ class CliLanterna {
|
||||||
props.setDownloadLocation(downloadLocationFile)
|
props.setDownloadLocation(downloadLocationFile)
|
||||||
props.incompleteLocation = incompletesLocationFile
|
props.incompleteLocation = incompletesLocationFile
|
||||||
|
|
||||||
propsFile.withOutputStream {
|
propsFile.withPrintWriter("UTF-8", {
|
||||||
props.write(it)
|
props.write(it)
|
||||||
}
|
})
|
||||||
} else {
|
} else {
|
||||||
props = new Properties()
|
props = new Properties()
|
||||||
propsFile.withInputStream {
|
propsFile.withReader("UTF-8", {
|
||||||
props.load(it)
|
props.load(it)
|
||||||
}
|
})
|
||||||
props = new MuWireSettings(props)
|
props = new MuWireSettings(props)
|
||||||
}
|
}
|
||||||
props.updateType = "cli-lanterna"
|
props.updateType = "cli-lanterna"
|
||||||
|
|
|
@ -199,6 +199,6 @@ class TrustView extends BasicWindow {
|
||||||
|
|
||||||
private void saveMuSettings() {
|
private void saveMuSettings() {
|
||||||
File settingsFile = new File(core.home,"MuWire.properties")
|
File settingsFile = new File(core.home,"MuWire.properties")
|
||||||
settingsFile.withOutputStream { core.muOptions.write(it) }
|
settingsFile.withPrintWriter("UTF-8",{ core.muOptions.write(it) })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue