libstdc++/3720: Problems with num_get
Benjamin Kosnik
bkoz@redhat.com
Mon Dec 10 02:07:00 GMT 2001
> would deduce octal from the leading zero, as that's what stdio "%i"
> does. Investigation shows that it is reading decimal, which is then
stdio %i is equiv behavior to basefield == 0 case only. Default is
signed/unsigned int in the case.
> causes the number to be read correctly. I suppose it's table 89 in
> 27.4.4.1 that determines that dec is the default? I didn't expect
> that.
See
22.2.2.1.2 - num_get virtual functions [lib.facet.num.get.virtuals]
p4
on how input is ordered.
For this case, I believe current behavior is correct.
best,
benjamin
More information about the Gcc-bugs
mailing list