Index: trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java	(revision 8072)
+++ trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java	(revision 8073)
@@ -153,5 +153,4 @@
             case LEFT_CASING:
             case RIGHT_CASING:
-            {
                 Float baseWidthOnDefault = getWidth(c_def, WIDTH, null);
                 Float baseWidth = getWidth(c, WIDTH, baseWidthOnDefault);
@@ -167,5 +166,4 @@
                 offset += casingOffset;
                 break;
-            }
         }
 
@@ -374,4 +372,5 @@
         }
     }
+
     public String linecapToString(int linecap) {
         switch (linecap) {
Index: trunk/src/org/openstreetmap/josm/io/CachedFile.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 8072)
+++ trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 8073)
@@ -257,5 +257,4 @@
     }
 
-    @SuppressWarnings("resource")
     private Pair<String, InputStream> findZipEntryImpl(String extension, String namepart) {
         File file = null;
@@ -263,4 +262,5 @@
             file = getFile();
         } catch (IOException ex) {
+            Main.warn(ex, false);
         }
         if (file == null)
Index: trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java	(revision 8072)
+++ trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java	(revision 8073)
@@ -37,8 +37,8 @@
 
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.Preferences.pref;
+import org.openstreetmap.josm.data.Preferences.writeExplicitly;
 import org.openstreetmap.josm.gui.ExtendedDialog;
 import org.openstreetmap.josm.gui.util.GuiHelper;
-import org.openstreetmap.josm.data.Preferences.pref;
-import org.openstreetmap.josm.data.Preferences.writeExplicitly;
 
 /**
@@ -57,9 +57,9 @@
     public static class FontEntry {
         /**
-         * The character subset. Basically a free identifier, but should
-         * be unique.
+         * The character subset. Basically a free identifier, but should be unique.
          */
         @pref
         public String charset;
+
         /**
          * Platform font name.
@@ -67,4 +67,5 @@
         @pref @writeExplicitly
         public String name = "";
+
         /**
          * File name.
@@ -73,7 +74,16 @@
         public String file = "";
 
+        /**
+         * Constructs a new {@code FontEntry}.
+         */
         public FontEntry() {
         }
 
+        /**
+         * Constructs a new {@code FontEntry}.
+         * @param charset The character subset. Basically a free identifier, but should be unique
+         * @param name Platform font name
+         * @param file File name
+         */
         public FontEntry(String charset, String name, String file) {
             this.charset = charset;
@@ -448,5 +458,5 @@
      * configuration. Finally the system property "sun.awt.fontconfig" is set
      * to the customized fontconfig.properties file.
-     * 
+     *
      * This is a crude hack, but better than no font display at all for these
      * languages.
@@ -482,5 +492,5 @@
             OutputStream os = Files.newOutputStream(fontconfigFile);
             os.write(content);
-            try (Writer w = new BufferedWriter(new OutputStreamWriter(os))) {
+            try (Writer w = new BufferedWriter(new OutputStreamWriter(os, StandardCharsets.UTF_8))) {
                 Collection<FontEntry> extrasPref = Main.pref.getListOfStructs(
                         "font.extended-unicode.extra-items", getAdditionalFonts(), FontEntry.class);
