Skip to content

Commit

Permalink
Use english locale when converting to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 27, 2017
1 parent 3f72c94 commit c6830ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.Locale;

/**
* Provides consistent access to an ANSI aware console PrintStream.
Expand All @@ -42,7 +43,7 @@ public class AnsiConsole {
public static final PrintStream system_err = System.err;
public static final PrintStream err;

private static final boolean IS_WINDOWS = System.getProperty("os.name").toLowerCase().contains("win");
private static final boolean IS_WINDOWS = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("win");

private static final boolean IS_CYGWIN = IS_WINDOWS
&& System.getenv("PWD") != null
Expand Down

0 comments on commit c6830ac

Please sign in to comment.