Re: BUG in Matrix.read(BufferedReader input)
Ulrich Eberhardinger wrote:
>
> Dear jama@nist!
[...]
> The problem is: The write-method uses DecimalFormat which implicitly
> uses the default locale.
Whoops! I guess this section of code would be my fault!
> Workaround:
> Provide a method, which uses Number NumberFormat.parse(String text) to
> convert the String to Number/Double using a NumberFormat with the same
> Locale used when writing or restrict to write with the US-Locale.
Is there any concensus on the list which is the best approach to take?
Interchange would suggest using US-locale, and its easier because of
java's poor support for parsing scientific notation --- but it's
certainly
US-centric!
> Best regards
>
> Ulrich Eberhardinger
Good diagnosis and Thanks for pointing it out.
Would you be willing to test a fixed version from somewhere with
"Real" locales ?
--
bruce.miller@nist.gov
http://math.nist.gov/~BMiller/
Date Index |
Thread Index |
Problems or questions? Contact list-master@nist.gov