Changeset 12061 in josm for trunk/scripts


Ignore:
Timestamp:
2017-05-05T09:04:01+02:00 (2 years ago)
Author:
stoecker
Message:

see #14655 - UTF-8 fixes on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r12008 r12061  
    116116
    117117    void loadSkip() {
    118         FileReader fr = new FileReader(ignoreInputFile)
     118        def fr = new InputStreamReader(new FileInputStream(ignoreInputFile), "UTF-8")
    119119        def line
    120120
     
    225225        return res
    226226    }
    227    
     227
    228228    void printentries(def entries, def stream) {
    229229        DecimalFormat df = new DecimalFormat("#.#######")
     
    359359            if (!josmUrls.containsKey(url)) continue
    360360            def j = josmUrls.get(url)
    361             def ename = getName(e).replace("'","")
    362             def jname = getName(j).replace("'","")
     361            def ename = getName(e).replace("'","\u2019")
     362            def jname = getName(j).replace("'","\u2019")
    363363            if (!ename.equals(jname)) {
    364364                myprintln "* Name differs ('${getName(e)}' != '${getName(j)}'): $url"
Note: See TracChangeset for help on using the changeset viewer.