Bug#155835: libc6-dev: scanf a flag conflicts with C99

2015-03-29 Thread Antti-Juhani Kaijanaho
On Sat, Mar 28, 2015 at 07:46:37PM +, Jean-Michel Nirgal Vourgère wrote: I suppose it has been fixed. scanf(3) now includes a note about specific '%a' behaviour when -std=c99 is used. Yes, it looks like it's fixed (though your attached log does not show it); I cannot reproduce the issue

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2015-03-28 Thread Jean-Michel Nirgal Vourgère
Hello I tried to reproduced the bug at https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;att=0;bug=155835 you reported back in 2002, but I couldn't. See attached log file. I suppose it has been fixed. scanf(3) now includes a note about specific '%a' behaviour when -std=c99 is used. Can we

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread Antti-Juhani Kaijanaho
On 20041219T124113+0900, GOTO Masanori wrote: This warning is come from gcc, not glibc. Gcc parses the first argument of scanf. When gcc mets %as in C99 mode, GNU extension should not be treated. This is gcc's expected behavior, so this is not bug. And you should reread the report if you

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread GOTO Masanori
At Sun, 19 Dec 2004 16:23:44 +0200, Antti-Juhani Kaijanaho wrote: On 20041219T124113+0900, GOTO Masanori wrote: This warning is come from gcc, not glibc. Gcc parses the first argument of scanf. When gcc mets %as in C99 mode, GNU extension should not be treated. This is gcc's expected

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread Antti-Juhani Kaijanaho
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

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread GOTO Masanori
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

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread Antti-Juhani Kaijanaho
On 20041220T013000+0900, GOTO Masanori wrote: %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? That is exactly the problem. In C99 mode %as means %a followed

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread GOTO Masanori
At Sun, 19 Dec 2004 18:44:16 +0200, Antti-Juhani Kaijanaho wrote: On 20041220T013000+0900, GOTO Masanori wrote: %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

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-19 Thread Antti-Juhani Kaijanaho
On 20041220T092820+0900, GOTO Masanori wrote: Gcc -std=c99 warns because it's not part of C99 behavior. Of course. Glibc can switch between various standards. Read info libc. I am aware of that. I was under the impression that on a Debian system compiling stuff with gcc --std=c99 will give

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-18 Thread GOTO Masanori
At Wed, 07 Aug 2002 23:51:54 +0300, Antti-Juhani Kaijanaho wrote: The a flag to scanf (a GNU extension, used like %as) conflicts with the C99 definition of the a conversion. GCC 3 already warns about the use of %a with -std=c99 and -std=gnu99, but the libc version uses the GNU semantics.

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-18 Thread Antti-Juhani Kaijanaho
On 20041218T201450+0900, GOTO Masanori wrote: Could you provide a sample test program for the latest sarge glibc/gcc? I'm running sid, so this is tested on sid: The following demonstrates that the bug is still valid: [EMAIL PROTECTED]:43:18]:~$ dpkg -l libc6 gcc

Bug#155835: libc6-dev: scanf a flag conflicts with C99

2004-12-18 Thread GOTO Masanori
Hi, At Sat, 18 Dec 2004 14:06:24 +0200, Antti-Juhani Kaijanaho wrote: On 20041218T201450+0900, GOTO Masanori wrote: Could you provide a sample test program for the latest sarge glibc/gcc? I'm running sid, so this is tested on sid: The following demonstrates that the bug is still valid: