Escaping double quotes in database fields does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Medium
|
Andrew Johnson |
Bug Description
Reported by Rod Nussbaumer, Electronics Development Group, TRIUMF:
I am generating EPICS .db files from a perl script, and would like to be able to generate records which have DESC fields containing the '"' 'double-quote' character. Is this possible? What is the syntax? I have tried editing an otherwise working database file, and have not been able to create one that passes the database loader. Have tried using combinations of multiple d-quotes and escaping them with various numbers of '' 'backslash' characters.
I am using R3.14.8.2 on Scientific Linux 4.
Additional information:
Staring at the code in .../src/
\\" doesn't end the string and hence is copied into the field, but no one ever takes out the backslash. Uh-oh.
OS: any
Platform: any
Version: R3.14.8.2
Original Mantis Bug: mantis-250
http://
ISTR that Marty didn't want to do all the character translations for every quoted string - the dbTranslateEscape() routine in libCom/ misc/epicsStrin g.c will do it, but it will to slow down database loading. KEK probably have a patch that inserts this at the right place since they worked on dbTranslateEsca pe().