Ignore:
Timestamp:
2014-01-06T19:21:52+01:00 (10 years ago)
Author:
simon04
Message:

see #9414 see #9542 - MapCSS validator: handle BOM in config files

File:
1 edited

Legend:

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

    r6649 r6650  
    4343import org.openstreetmap.josm.gui.widgets.EditableList;
    4444import org.openstreetmap.josm.io.MirroredInputStream;
     45import org.openstreetmap.josm.io.UTFInputStreamReader;
    4546import org.openstreetmap.josm.tools.CheckParameterUtil;
    4647import org.openstreetmap.josm.tools.GBC;
     
    429430            try {
    430431                Main.info(tr("Adding {0} to tag checker", i));
    431                 addMapCSS(new BufferedReader(new InputStreamReader(new MirroredInputStream(i), Utils.UTF_8)));
     432                addMapCSS(new BufferedReader(UTFInputStreamReader.create(new MirroredInputStream(i))));
    432433            } catch (Exception ex) {
    433434                Main.warn(new RuntimeException(tr("Failed to add {0} to tag checker", i), ex));
Note: See TracChangeset for help on using the changeset viewer.