EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: CaSe-IndepeDent Menu SEARches?
From: "Johnson, Andrew N. via Core-talk" <core-talk at aps.anl.gov>
To: EPICS core-talk <core-talk at aps.anl.gov>
Date: Thu, 4 Feb 2021 00:21:39 +0000
A colleague just presented me with one of those frustrating little problems where his database wouldn’t load because he spelled a calcout.OOPT field value using “to” instead of “To” and he couldn’t find it.

How about when putting to a menu field we do a second pass through the choice strings using epicsStrCaseCmp() so this kind of thing would be silently accepted? The first pass should still use strcmp() in case some IOC has choices (in mbbo strings) that only differ by case, but the second pass would accept the first to match even when the cases differ.

We could make this configurable so sites could turn it off, or even have it display a warning, but I’m not sure who would really want that much strictness.

I already wrote the code, although it could be posted as a Codeathon project instead (requiring tests and Release Notes as well).

- Andrew

-- 
Complexity comes for free, simplicity you have to work for.


Replies:
Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk
Re: CaSe-IndepeDent Menu SEARches? Torsten Bögershausen via Core-talk
Re: CaSe-IndepeDent Menu SEARches? Ben Franksen via Core-talk

Navigate by Date:
Prev: [Bug 1913699] Re: vxWorks compilation fails with undeclared function Dirk Zimoch via Core-talk
Next: Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Build completed: EPICS Base 7 base-7.0-138 AppVeyor via Core-talk
Next: Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 04 Feb 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·