Changeset 13621 in josm


Ignore:
Timestamp:
2018-04-12T21:07:56+02:00 (12 months ago)
Author:
stoecker
Message:

see #14655 - fix bug in sync tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r13620 r13621  
    120120        }
    121121        if (options.output && options.output != "-") {
    122             String ccp = options.encoding
    123             if (ccp == null)
    124                 ccp = "UTF-8"
    125122            outputFile = new FileOutputStream(options.output)
    126             outputStream = new OutputStreamWriter(outputFile, ccp)
     123            outputStream = new OutputStreamWriter(outputFile, options.encoding ? options.encoding : "UTF-8")
    127124        } else if (options.encoding) {
    128125            outputStream = new OutputStreamWriter(System.out, options.encoding)
Note: See TracChangeset for help on using the changeset viewer.