Changeset 6371 in josm


Ignore:
Timestamp:
2013-11-07T08:34:15+01:00 (6 years ago)
Author:
simon04
Message:

fix #9157 - read opening_hours.js in UTF-8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java

    r6370 r6371  
    4848    public void initialize() throws Exception {
    4949        super.initialize();
    50         ENGINE.eval(new InputStreamReader(new MirroredInputStream("resource://data/opening_hours.js")));
     50        ENGINE.eval(new InputStreamReader(new MirroredInputStream("resource://data/opening_hours.js"), "UTF-8"));
    5151        ENGINE.eval("var oh = function (x, y) {return new opening_hours(x, y);};");
    5252    }
     
    6262            return Arrays.asList();
    6363        } else if (obj instanceof String) {
    64             return Arrays.<Object>asList(((String) obj).split("\\n"));
     64            final Object[] strings = ((String) obj).split("\\n");
     65            return Arrays.asList(strings);
    6566        } else if (obj instanceof List) {
    6667            return (List) obj;
Note: See TracChangeset for help on using the changeset viewer.