diff --git a/jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java b/jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java index 6378a1d2..df360266 100644 --- a/jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java +++ b/jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java @@ -16,6 +16,8 @@ package org.fusesource.jansi; +import java.util.Locale; + import org.fusesource.jansi.Ansi.Attribute; import org.fusesource.jansi.Ansi.Color; @@ -102,7 +104,7 @@ static public String render(final String input) throws IllegalArgumentException static private String render(final String text, final String... codes) { Ansi ansi = Ansi.ansi(); for (String name : codes) { - Code code = Code.valueOf(name.toUpperCase()); + Code code = Code.valueOf(name.toUpperCase(Locale.ENGLISH)); if (code.isColor()) { if (code.isBackground()) {