title: Parse String to Long using a specified locale (sv) and NumberFormat
body: <p>I tried to parse a string (14 123) to a long in java using Swedish locale using this code:</p>
  
  <pre><code>String longString = "14 123"
  NumberFormat swedishNumberFormat = NumberFormat.getInstance(new Locale("sv"));
  System.out.println(swedishNumberFormat.parse(longString).longValue());
  </code></pre>
  
  <p>The output of this code is 14 (it should be 14123). As per <a href="https://stackoverflow.com/questions/26252824/java-whats-the-difference-between-the-sv-and-sv-se-locale">this question</a> I tried with both the sv and sv_SE locale but this time the result was identical in both cases. </p>
  
  <p>According to <a href="http://www.localeplanet.com/java/sv/index.html" rel="nofollow noreferrer">http://www.localeplanet.com/java/sv/index.html</a> and <a href="http://www.localeplanet.com/java/sv-SE/index.html" rel="nofollow noreferrer">http://www.localeplanet.com/java/sv-SE/index.html</a> the grouping separator in both cases is a space(<code></code>) so why does the string to long parsing not handle a, for the locale, properly formatted double value stored as string?</p>