Changeset 13620 in josm for trunk/scripts/SyncEditorLayerIndex.groovy
- Timestamp:
- 2018-04-12T09:29:31+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.groovy
r13619 r13620 125 125 outputFile = new FileOutputStream(options.output) 126 126 outputStream = new OutputStreamWriter(outputFile, ccp) 127 } else { 128 String ccp = options.encoding 129 if (ccp == null) { 130 String osn = System.getProperty("os.name") 131 ccp = (osn != null && osn.contains("Windows")) ? "cp850" : "UTF-8" 132 } 133 outputStream = new OutputStreamWriter(System.out, ccp) 127 } else if (options.encoding) { 128 outputStream = new OutputStreamWriter(System.out, options.encoding) 134 129 } 135 130 }
Note:
See TracChangeset
for help on using the changeset viewer.