From 1eb7e7a8e8349273d8dd0127dcfd1d426075493e Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Mon, 25 Feb 2019 06:36:39 -0700 Subject: [PATCH] added comment describing netcdf-4 behavior in data mode dim renames with longer names --- libhdf5/hdf5dim.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libhdf5/hdf5dim.c b/libhdf5/hdf5dim.c index 8a146d901..a184f9925 100644 --- a/libhdf5/hdf5dim.c +++ b/libhdf5/hdf5dim.c @@ -187,6 +187,11 @@ NC4_inq_dim(int ncid, int dimid, char *name, size_t *lenp) /** * @internal Rename a dimension, for those who like to prevaricate. * + * @note If we're not in define mode, new name must be of equal or + * less size, if strict nc3 rules are in effect for this file. But we + * don't check this because reproducing the exact classic behavior + * would be too difficult. See github issue #1340. + * * @param ncid File and group ID. * @param dimid Dimension ID. * @param name New dimension name.