Changeset 13621 in josm for trunk/scripts
- Timestamp:
- 2018-04-12T21:07:56+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.groovy
r13620 r13621 120 120 } 121 121 if (options.output && options.output != "-") { 122 String ccp = options.encoding123 if (ccp == null)124 ccp = "UTF-8"125 122 outputFile = new FileOutputStream(options.output) 126 outputStream = new OutputStreamWriter(outputFile, ccp)123 outputStream = new OutputStreamWriter(outputFile, options.encoding ? options.encoding : "UTF-8") 127 124 } else if (options.encoding) { 128 125 outputStream = new OutputStreamWriter(System.out, options.encoding)
Note:
See TracChangeset
for help on using the changeset viewer.