equal
deleted
inserted
replaced
651 } catch (Throwable t) { unexpected(t); return -1; } |
651 } catch (Throwable t) { unexpected(t); return -1; } |
652 } |
652 } |
653 } |
653 } |
654 |
654 |
655 static class EnglishUnix { |
655 static class EnglishUnix { |
656 private final static Boolean is = |
656 private static final Boolean is = |
657 (! Windows.is() && isEnglish("LANG") && isEnglish("LC_ALL")); |
657 (! Windows.is() && isEnglish("LANG") && isEnglish("LC_ALL")); |
658 |
658 |
659 private static boolean isEnglish(String envvar) { |
659 private static boolean isEnglish(String envvar) { |
660 String val = getenv(envvar); |
660 String val = getenv(envvar); |
661 return (val == null) || val.matches("en.*") || val.matches("C"); |
661 return (val == null) || val.matches("en.*") || val.matches("C"); |