To whomever feels responsible for casr
I found a bug in casr. Empty strings were saved as data{} (in ascii format) but
cannot be restored. The fix below stores empty strings as data{""}.
There are still other issues: It is not possible to restore a string that
contains a quote (") or that ends with a backslash (\). Both result in syntax
errors. Restoring a string that contains special characters like äöü sometimes
hangs up carestore.
Best regards,
Dirk
*** common.c.orig 2009-09-03 11:33:15.000000000 +0200
--- common.c 2009-09-03 11:33:21.000000000 +0200
***************
*** 502,507 ****
--- 502,512 ----
{
char *p = Value;
+ if (!*p)
+ {
+ fputs("\"\"", file);
+ return;
+ }
while(*p)
{
if (!isalnum(*p) && (*p != '.') && (*p != ':') && (*p != '+')
&& (*p != '-') && (*p != '_'))
--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182
- Replies:
- Re: casr bug Andrew Johnson
- Navigate by Date:
- Prev:
Re: Problem building EPICS base 3.14.11 Andrew Johnson
- Next:
Re: casr bug Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Problem building EPICS base 3.14.11 Andrew Johnson
- Next:
Re: casr bug Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|