Changeset 6700 in josm for trunk


Ignore:
Timestamp:
2014-01-16T02:58:44+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #518 - Unicode normalization in add/edit tags dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r6699 r6700  
    2727import java.awt.event.WindowEvent;
    2828import java.awt.image.BufferedImage;
     29import java.text.Normalizer;
    2930import java.util.ArrayList;
    3031import java.util.Arrays;
     
    332333        private void performTagEdit() {
    333334            String value = Tag.removeWhiteSpaces(values.getEditor().getItem().toString());
    334             // is not Java 1.5
    335             //value = java.text.Normalizer.normalize(value, java.text.Normalizer.Form.NFC);
     335            value = Normalizer.normalize(value, java.text.Normalizer.Form.NFC);
    336336            if (value.isEmpty()) {
    337337                value = null; // delete the key
    338338            }
    339339            String newkey = Tag.removeWhiteSpaces(keys.getEditor().getItem().toString());
    340             //newkey = java.text.Normalizer.normalize(newkey, java.text.Normalizer.Form.NFC);
     340            newkey = Normalizer.normalize(newkey, java.text.Normalizer.Form.NFC);
    341341            if (newkey.isEmpty()) {
    342342                newkey = key;
Note: See TracChangeset for help on using the changeset viewer.