Title
Missing double specifier for do_get()
Status
tc1
Section
[facet.num.get.virtuals]
Submitter
Dietmar Kühl

Created on 1999-07-20.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The standard makes an embarrassing beginner's mistake.

Date: 2010-10-21.18:28:33

Proposed resolution:

In [facet.num.get.virtuals], paragraph 7, add a row in the Length Modifier table to say that for double a length modifier l is to be used.

Date: 1999-07-20.00:00:00

The table in paragraph 7 for the length modifier does not list the length modifier l to be applied if the type is double. Thus, the standard asks the implementation to do undefined things when using scanf() (the missing length modifier for scanf() when scanning doubles is actually a problem I found quite often in production code, too).

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1702
2010-10-21 18:28:33adminsetmessages: + msg1701
1999-07-20 00:00:00admincreate