summaryrefslogtreecommitdiffstats
path: root/java/examples
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-08 18:44:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-08 18:44:48 (GMT)
commit59ab02a6c539a117bab93d9ed644dc6ff8d11a98 (patch)
treeaa835ed4e74da0cd3e5bb62243233fc29e90cb71 /java/examples
parentc3ae64a8753e6449a8c5c5e58325f0cb7e7990b6 (diff)
downloadhdf5-59ab02a6c539a117bab93d9ed644dc6ff8d11a98.zip
hdf5-59ab02a6c539a117bab93d9ed644dc6ff8d11a98.tar.gz
hdf5-59ab02a6c539a117bab93d9ed644dc6ff8d11a98.tar.bz2
HDFFV-10995 adjust testing to tolerate non-US locale
Diffstat (limited to 'java/examples')
-rw-r--r--java/examples/datatypes/H5Ex_T_Float.java2
-rw-r--r--java/examples/datatypes/H5Ex_T_FloatAttribute.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/examples/datatypes/H5Ex_T_Float.java b/java/examples/datatypes/H5Ex_T_Float.java
index f677479..caad74c 100644
--- a/java/examples/datatypes/H5Ex_T_Float.java
+++ b/java/examples/datatypes/H5Ex_T_Float.java
@@ -173,7 +173,7 @@ public class H5Ex_T_Float {
}
// Output the data to the screen.
- DecimalFormat df = new DecimalFormat("#,##0.0000");
+ DecimalFormat df = new DecimalFormat("#,##0.0000", new DecimalFormatSymbols(Locale.US));
System.out.println(DATASETNAME + ":");
for (int indx = 0; indx < dims[0]; indx++) {
System.out.print(" [");
diff --git a/java/examples/datatypes/H5Ex_T_FloatAttribute.java b/java/examples/datatypes/H5Ex_T_FloatAttribute.java
index 2e706d9..1243480 100644
--- a/java/examples/datatypes/H5Ex_T_FloatAttribute.java
+++ b/java/examples/datatypes/H5Ex_T_FloatAttribute.java
@@ -201,7 +201,7 @@ public class H5Ex_T_FloatAttribute {
}
// Output the data to the screen.
- DecimalFormat df = new DecimalFormat("#,##0.0000");
+ DecimalFormat df = new DecimalFormat("#,##0.0000", new DecimalFormatSymbols(Locale.US));
System.out.println(ATTRIBUTENAME + ":");
for (int indx = 0; indx < dims[0]; indx++) {
System.out.print(" [");