summaryrefslogtreecommitdiffstats
path: root/tools/testfiles/charsets.ddl
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-05-22 21:36:45 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-05-22 21:36:45 (GMT)
commitb904ca7ec369149f858495860795fd7afcba8670 (patch)
treea3d592fedf3dca2fd90c1f50e1c262d0d86fc493 /tools/testfiles/charsets.ddl
parent2f8b5057c1613f02e3ba24aa2511734e5ea836bd (diff)
downloadhdf5-b904ca7ec369149f858495860795fd7afcba8670.zip
hdf5-b904ca7ec369149f858495860795fd7afcba8670.tar.gz
hdf5-b904ca7ec369149f858495860795fd7afcba8670.tar.bz2
[svn-r22391] HDFFV-7999: h5dump did not display H5T_DSET_UTF8.
Changed if/else block to switch like in h5ls, and distinguished between ERROR and UNKNOWN. Reviewed by JKM Tested: local linux
Diffstat (limited to 'tools/testfiles/charsets.ddl')
-rw-r--r--tools/testfiles/charsets.ddl27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/testfiles/charsets.ddl b/tools/testfiles/charsets.ddl
new file mode 100644
index 0000000..c2301fb
--- /dev/null
+++ b/tools/testfiles/charsets.ddl
@@ -0,0 +1,27 @@
+HDF5 "charsets.h5" {
+GROUP "/" {
+ DATASET "CharSets" {
+ DATATYPE H5T_COMPOUND {
+ H5T_STRING {
+ STRSIZE H5T_VARIABLE;
+ STRPAD H5T_STR_NULLTERM;
+ CSET H5T_CSET_ASCII;
+ CTYPE H5T_C_S1;
+ } "ascii";
+ H5T_STRING {
+ STRSIZE H5T_VARIABLE;
+ STRPAD H5T_STR_NULLTERM;
+ CSET H5T_CSET_UTF8;
+ CTYPE H5T_C_S1;
+ } "utf8";
+ }
+ DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
+ DATA {
+ (0): {
+ "ascii",
+ "utf8"
+ }
+ }
+ }
+}
+}