[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #MQV-638321]: ncdump bug question



Mike,

> I'm not familiar with the syntax of your diff output.  It appears
> the fix is either to use:
>
> /* if(*cp && (isspace(*cp) | iscntrl(*cp)))*/
> ! if((*cp >= 0x01 && *cp <= 0x32) || (*cp == 0x7f)
>
> or use:
>
> /* if(*cp && (isspace(*cp) | iscntrl(*cp)))*/
> ! if((*cp >= 0x00 && *cp <= 0x20) || (*cp == 0x7f))
>
> Which one should I use?

Oops, sorry, you should use the second one and remove the exclamation mark, so
the code should appear in context as the following 3 lines, where only the
middle line has changed:

/*    if(*cp && (isspace(*cp) | iscntrl(*cp)))*/
    if((*cp >= 0x01 && *cp <= 0x20) || (*cp == 0x7f))
    {

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: MQV-638321
Department: Support netCDF
Priority: Normal
Status: Closed