Turkish locale toLowerCase I problem fix (causing not loading main window because of icon names conversion, etc.)

This commit is contained in:
Jindra Petřík
2018-04-01 16:26:32 +02:00
parent 5717035254
commit c2f729b3bf
14 changed files with 69 additions and 57 deletions

View File

@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.console;
import com.jpexs.decompiler.flash.AbortRetryIgnoreHandler;
import java.util.Locale;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -57,7 +58,7 @@ public class ConsoleAbortRetryIgnoreHandler implements AbortRetryIgnoreHandler {
do {
System.out.print("Select action: (A)bort, (R)Retry, (I)Ignore:");
String n = sc.nextLine();
switch (n.toLowerCase()) {
switch (n.toLowerCase(Locale.ENGLISH)) {
case "a":
return AbortRetryIgnoreHandler.ABORT;
case "r":