Bug#155835: libc6-dev: scanf a flag conflicts with C99
At Sun, 19 Dec 2004 18:16:30 +0200,
Antti-Juhani Kaijanaho wrote:
> On 20041220T010216+0900, GOTO Masanori wrote:
> > GNU extension is GNU's feature, not a bug. Glibc provides %as with
> > the historical reasons. If you don't want to use it, you should just
> > remove it. If you have another opinion or point of view to improve
> > it, show us your proposal.
> Well, if GNU Libc wants to stay C99 incompatible, it's their choice.
> I hope that the decision is widely published so that people know to
> choose some other libc.
"%as" is GNU extension. Why don't you want to use "%a" instead of
"%as"? Note that C99 defines "%a" as signed floating-point number,
not modifier flag like l,L. Or am I missing something?
> However, the decision is upstream's. I'd appreciate if you could
> forward this bug upstream like you're supposed to.
> Note that I compiled the demonstration program with --std=c99, and I
> would hope that this choice of language dialect is communicated to the
> libc. Libc could then choose whether to use the legacy GNU semantics or
> C99 semantics based on the dialect selection (I believe that a
> conditional #define in <stdio.h> can choose which scanf implementation
> is used).
Note that if you want to select the glibc's definition behavior,
_D_ISOC99_SOURCE and so on can be used explicitly. See info libc.