title: java.util.logging breaks on wsl with spaces in paths
body: <p>I have a small Java project setup with the 3 files <code>Foo.java</code>, <code>logging.properties</code> and <code>build.gradle</code> as below.</p>
  <p>In the <code>Foo.java</code>, I run the below</p>
  <pre class="lang-java prettyprint-override"><code>package foo;
  import java.util.logging.Logger;
  
  public class Foo {
  
      public static void  main(String[] args) {
          var file = Foo.class.getClassLoader().getResource(&quot;logging.properties&quot;).getFile();
          System.setProperty(&quot;java.util.logging.config.file&quot;, file);
          var l = Logger.getLogger(Foo.class.getName());
          l.info(&quot;HOLA!&quot;);
      }
  }
  </code></pre>
  <p>and the corresponding properties file is simply</p>
  <pre><code>handlers=java.util.logging.ConsoleHandler
  </code></pre>
  <p>The gradle file is simple enough.</p>
  <pre><code>apply plugin: 'java'
  
  sourceCompatibility = 11
  targetCompatibility = 11
  </code></pre>
  <p>they are structured like below</p>
  <pre><code>foo/
  ├─ src/
  │  ├─ java/
  │  │  ├─ main/
  │  │  │  ├─ foo/
  │  │  │  │  ├─ Foo.java
  │  ├─ resources/
  │  │  ├─ logging.properties
  ├─ build.gradle
  </code></pre>
  <p>to run the code, I write</p>
  <pre><code>gradle build
  java -cp build/classes/java/main/:build/resources/main/ foo.Foo
  </code></pre>
  <p>Now to my problem: if I locate <code>root</code> in <code>/mnt/c/Users/Ludvig/Desktop/logtest/root</code>, all works well. If I change the path be <code>/mnt/c/Users/Ludvig/Desktop/log test/root</code> I get no log output. Notice that it fails silently! So the program runs, but the logging fails. What to do?</p>