Ignore:
Timestamp:
2020-01-28T00:39:43+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #18608 - use the correct console encoding on Windows (regression from r10899)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Logging.java

    r15590 r15791  
    77import java.io.PrintWriter;
    88import java.io.StringWriter;
     9import java.io.UnsupportedEncodingException;
    910import java.text.MessageFormat;
    1011import java.util.ArrayList;
     
    8889            this.prioritizedHandler = prioritizedHandler;
    8990
     91            try {
     92                // Make sure we use the correct console encoding on Windows
     93                this.setEncoding(System.getProperty("sun.stdout.encoding"));
     94            } catch (SecurityException | UnsupportedEncodingException e) {
     95                System.err.println(e);
     96            }
    9097            this.reacquireOutputStream();
    9198        }
Note: See TracChangeset for help on using the changeset viewer.