fix bug in % encoding of dap names

This commit is contained in:
Dennis Heimbigner 2013-01-30 21:33:31 +00:00
parent e8053ad518
commit 7f58fc9400
3 changed files with 8 additions and 8 deletions

4
cf
View File

@ -8,8 +8,8 @@ cmds=$@
fi
HDF5=1
#DAP=1
PNETCDF=1
DAP=1
#PNETCDF=1
#RPC=1
#PGI=1
#M32=1

View File

@ -746,7 +746,6 @@ oc_dumpnode(conn,*rootp);
static char* badchars = "./";
int
dap_badname(char* name)
{
@ -785,7 +784,7 @@ dap_repairname(char* name)
newchar[2] = hexdigits[digit];
newchar[3] = '\0';
strcat(newname,newchar);
q += 4; /*strlen(newchar)*/
q += 3; /*strlen(newchar)*/
} else
*q++ = c;
*q = '\0'; /* so we can always do strcat */

View File

@ -13,15 +13,16 @@ P=`pwd`
#T="1990-S1700101.HDF.WVC_Lat"
T="synth1"
F="file://$TOP/ncdap_test/testdata3/$T"
#F="file://$TOP/ncdap_test/testdata3/$T"
#F="http://motherlode.ucar.edu:8081/dts/$T?f64"
#F="http://motherlode.ucar.edu:8080/thredds/dodsC/testdods/coads_climatology.nc"
#F="http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd20120801/gfs_hd_00z"
#F="http://hycom.coaps.fsu.edu/thredds/dodsC/atl_ops"
#F="http://testbedapps-dev.sura.org/thredds/dodsC/auto/in.usf.fvcom.ike.ultralite.vardrag.nowave.2d"
F="http://motherlode.ucar.edu:8081/dts/test.06"
#F="http://motherlode.ucar.edu:8081/dts/test.06"
CON="OneD.amp,TwoD.amp,ThreeD.amp"
F="http://motherlode.ucar.edu:8081/thredds/dodsC/testdods/nametest3.nc"
#CON="OneD.amp,TwoD.amp,ThreeD.amp"
PARMS="[log]"