Bug 90553 - Default value must be numeric?
Summary: Default value must be numeric?
Alias: None
Product: eCos
Classification: Retired
Component: CDL (Show other bugs)
(Show other bugs)
Version: CVS
Hardware: All Linux
Target Milestone: ---
Assignee: Bart Veer
QA Contact: Bart Veer
Depends On:
TreeView+ depends on / blocked
Reported: 2003-05-09 15:56 UTC by Gary Thomas
Modified: 2007-04-18 16:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-05-09 18:06:58 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Gary Thomas 2003-05-09 15:56:19 UTC
Description of problem:
I have a component of type data with legal values { "860" "860P" ...}
I can set the default value to "860", but not "860P"
Selecting "860P" (or forcing it via other CDL) works fine.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Try to change the default value in
Actual results:

Expected results:

Additional info:

Comment 1 Bart Veer 2003-05-09 17:59:34 UTC
Exactly what failure is seen?

If you use default_value "860P" then the parser will get confused. The quotes
are removed by the Tcl interpreter so libcdl sees 860P, tries to parse it as a
and fails. You should get a parse error about an invalid character after the
number 860.

If you use default_value { "860P" } then everything seems to work. The libcdl
parser will still see the quotes so it will treat the contents as a string
rather than a number.

Comment 2 Gary Thomas 2003-05-09 18:06:58 UTC
The error I get does indicate a parsing problem.

component CYGHWR_HAL_POWERPC_MPC8XX, property default_value: error
    Invalid character detected after number 860
     ^4^ {860P...}
Package CYGPKG_HAL_POWERPC_MPC8xx, 1 error occurred while reading in the CDL data.

Using { "860P" } does seem sufficient, I'll just do that and be happy.

Note You need to log in before you can comment on or make changes to this bug.