Skip to content

Commit 1f6c0d4

Browse files
committed
fix locale
1 parent 9b9c2bc commit 1f6c0d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/ghostchu/peerbanhelper/gui/impl/swing/mainwindow/SwingMainWindow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private void registerTabs() {
8787
&& ExternalSwitch.parseBoolean("pbh.swingui.webuiTab", true)) {
8888

8989
try { // SWT possible be null here on unsupported platform
90-
boolean isWindows = System.getProperty("os.name").toLowerCase().contains("windows");
90+
boolean isWindows = System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows");
9191
if (isWindows) { // SWT 检测到不支持的系统直接就把 JVM 轰飞了,需要先检测系统版本
9292
var buildNumber = new oshi.SystemInfo().getOperatingSystem().getVersionInfo().getBuildNumber();
9393
if (Long.parseLong(buildNumber) > 14393) {

0 commit comments

Comments
 (0)