Changeset 6644 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2014-01-06T18:22:54+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #9542 - handle BOM in UTF-8 tagchecker config files

File:
1 edited

Legend:

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

    r6638 r6644  
    55import static org.openstreetmap.josm.tools.I18n.tr;
    66
    7 import java.awt.BorderLayout;
    8 import java.awt.Dimension;
    97import java.awt.GridBagConstraints;
    108import java.awt.event.ActionEvent;
     
    1311import java.io.FileNotFoundException;
    1412import java.io.IOException;
    15 import java.io.InputStreamReader;
    1613import java.text.MessageFormat;
    1714import java.util.ArrayList;
    1815import java.util.Arrays;
    1916import java.util.Collection;
    20 import java.util.Collections;
    2117import java.util.HashMap;
    2218import java.util.List;
     
    3733import org.openstreetmap.josm.command.Command;
    3834import org.openstreetmap.josm.command.SequenceCommand;
    39 import org.openstreetmap.josm.data.osm.Node;
    4035import org.openstreetmap.josm.data.osm.OsmPrimitive;
    4136import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    4237import org.openstreetmap.josm.data.osm.OsmUtils;
    43 import org.openstreetmap.josm.data.osm.Relation;
    44 import org.openstreetmap.josm.data.osm.Way;
    4538import org.openstreetmap.josm.data.validation.Severity;
    4639import org.openstreetmap.josm.data.validation.Test;
     
    5750import org.openstreetmap.josm.gui.widgets.EditableList;
    5851import org.openstreetmap.josm.io.MirroredInputStream;
     52import org.openstreetmap.josm.io.UTFInputStreamReader;
    5953import org.openstreetmap.josm.tools.GBC;
    6054import org.openstreetmap.josm.tools.MultiMap;
     
    173167            try {
    174168                MirroredInputStream s = new MirroredInputStream(source);
    175                 reader = new BufferedReader(new InputStreamReader(s, Utils.UTF_8));
     169                reader = new BufferedReader(UTFInputStreamReader.create(s, "UTF-8"));
    176170
    177171                String okValue = null;
Note: See TracChangeset for help on using the changeset viewer.