Files
epics-base/documentation/new-notes/PR-678.md
Dirk Zimoch 46f046c751 allow hex and octal strings in dbPut
Setting EPICS_DB_CONVERT_DECIMAL_ONLY turns dbPut/dbGet
string to integer conversions back the the old decimal only
policy.
2025-07-29 17:55:05 +02:00

612 B

Allow hex and octal strings in dbPut and dbGet

It is now possible to convert hex and octal strings to integer fields with dbPut(), dbGet() and related functions like the iocsh command dbpf or through database links.

Possible incompatibility: Up to now, leading 0s have been ignored, now they switch to octal mode.

For backward compatibility, this behavior can be switched off, returning to the old decimal only conversions, by setting the environment variable EPICS_DB_CONVERT_DECIMAL_ONLY to anything except the empty string or strings starting with n, N, f, F or 0 before iocInit.