Ignore:
Timestamp:
2018-04-12T09:29:31+02:00 (7 years ago)
Author:
stoecker
Message:

better encoding support, see #14655 - don't do OS detection, that's probably done automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r13619 r13620  
    125125            outputFile = new FileOutputStream(options.output)
    126126            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)
    134129        }
    135130    }
Note: See TracChangeset for help on using the changeset viewer.