title: NumberFormat.parse() fails for some currency strings
body: <p>I have a simple <code>EditText</code>, which allows the user to enter a number such as <code>45.60</code> (example for American Dollar). I then format this number using the following method:</p>
  
  <pre><code>public String format() {
      NumberFormat formatter = NumberFormat.getCurrencyInstance(Locale.getDefault());
      return formatter.format(amount.doubleValue());
  }
  </code></pre>
  
  <p>And on my Android phone, the language is set to English (United States) - hence the <code>Locale.getDefault()</code> should return the US locale (and it does).</p>
  
  <p>Now the edit text is correctly updated to: <code>$45.60</code> (hence formatting the entered number works).</p>
  
  <p>However if I attempt to parse the above String <code>"$45.60"</code> using the following method:</p>
  
  <pre><code>NumberFormat numberFormat = NumberFormat.getInstance(Locale.getDefault());
  Number result = numberFormat.parse("$45.60");
  </code></pre>
  
  <p>It fails with:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Failed to parse amount $45.60 using locale en_US.
  </code></pre>
  
  <p>If I set my phone to English/ UK, formatting this <code>"45.60"</code> to <code>"£45.60"</code> works correctly (as for US), however parsing <code>"£45.60"</code> fails, just as it does for the above US sample.</p>
  
  <p>However, if I set my phone to German (Germany), formatting <code>"45,60"</code> to <code>"45,60€"</code> works correctly, AND parsing <code>"45,60€"</code> works correctly as well!</p>
  
  <p>The only difference I see between those three currencies: The Euro is appended to the amount, while the Dollar and the Pound are prepended to the amount.</p>
  
  <p>Does anyone have an idea, why the same code works for Euro, but not for Pound and Dollar? Am I missing something?</p>
  
  <p>I also created a unit test, to reproduce the issue:</p>
  
  <pre><code>public void testCreateStringBased() throws Exception {
  
      // For German locale
      CurrencyAmount amount = new CurrencyAmount("25,46€", Locale.GERMANY);
      assertEquals(25.46, amount.getAsDouble());
  
      // For French locale
      amount = new CurrencyAmount("25,46€", Locale.FRANCE);
      assertEquals(25.46, amount.getAsDouble());
  
      // For US locale
      amount = new CurrencyAmount("$25.46", Locale.US);
      assertEquals(25.46, amount.getAsDouble());
  
      // For UK locale
      amount = new CurrencyAmount("£25.46", Locale.UK);
      assertEquals(25.46, amount.getAsDouble());
  }
  </code></pre>
  
  <p><code>CurrencyAmount</code> basically wraps the code I posted for parsing currency strings, except that it takes the given locale instead of the default locale. In the above example, the test succeeds for the GERMANY and FRANCE locale but fails for US and UK locale.</p>