Skip to content

Commit

Permalink
fix: Turkish locale in Java breaking the letter 'i'
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Mar 20, 2021
1 parent 71d3e14 commit 7b991ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/me/coley/recaf/Recaf.java
Expand Up @@ -21,6 +21,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.Locale;

import static me.coley.recaf.util.Log.*;

Expand Down Expand Up @@ -82,6 +83,8 @@ private static void init() {
SelfDependencyPatcher.patch();
// Fix title bar not displaying in GTK systems
System.setProperty("jdk.gtk.version", "2");
// Fix for this dumb "feature" - https://mattryall.net/blog/the-infamous-turkish-locale-bug
Locale.setDefault(Locale.US);
// Show version & start
info("Recaf-{}", VERSION);
initialized = true;
Expand Down

0 comments on commit 7b991ef

Please sign in to comment.