Skip to content

Commit c0dcd1b

Browse files
committed
Use root locale
1 parent cad2210 commit c0dcd1b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ val swtGroupId = "org.eclipse.platform"
5353
val swtVersion = "3.131.0"
5454
var swtArtifact = "org.eclipse.swt."
5555

56-
val os = System.getProperty("os.name").lowercase(Locale.ENGLISH)
56+
val os = System.getProperty("os.name").lowercase(Locale.ROOT)
5757
swtArtifact += when {
5858
os.contains("windows") -> "win32.win32."
5959
os.contains("linux") -> "gtk.linux."

src/io/calimero/gui/LogTab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void initLogging() {
170170
workArea.layout(true, true);
171171
enableColumnAdjusting();
172172

173-
final int cmd = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("mac") ? SWT.COMMAND : SWT.CTRL;
173+
final int cmd = System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("mac") ? SWT.COMMAND : SWT.CTRL;
174174
list.addKeyListener(new KeyAdapter() {
175175
@Override
176176
public void keyPressed(final KeyEvent e) {

src/io/calimero/gui/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static void main(final String[] args)
173173
display = new Display();
174174
shell = new Shell(display);
175175
final FontData[] fontData = shell.getFont().getFontData();
176-
final String os = System.getProperty("os.name", "generic").toLowerCase(Locale.ENGLISH);
176+
final String os = System.getProperty("os.name", "generic").toLowerCase(Locale.ROOT);
177177
if (!os.contains("windows")) {
178178
int height = fontData[0].getHeight();
179179
height -= (int) (0.15 * height);

src/io/calimero/gui/SwtChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private void downloadToLibDir() throws IOException, URISyntaxException
152152

153153
private Platform platform()
154154
{
155-
final String os = System.getProperty("os.name", "unknown").toLowerCase(Locale.ENGLISH);
155+
final String os = System.getProperty("os.name", "unknown").toLowerCase(Locale.ROOT);
156156
// data model prop gives us the jvm bitness
157157
final String model = System.getProperty("sun.arch.data.model");
158158
final String arch = System.getProperty("os.arch");

0 commit comments

Comments
 (0)