Bug 7813
Summary: | scanf() %2f directive skips leading zeros | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | sandlass |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-05-22 14:53:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
sandlass
1999-12-15 13:44:43 UTC
Just tried it here... [rhw@ps rhw]$ gcc -Wall -o x x.c [rhw@ps rhw]$ ./x 01020304 scanf = 4 f1 = 1.000000 f2 = 2.000000 f3 = 3.000000 f4 = 4.000000 [rhw@ps rhw]$ Looks fine to me. For reference... Kernel 2.2.13 (SMP - Dual P2/350) Kernel modules 2.1.121 Gnu C 2.7.2.3 Binutils 2.9.1.0.4 Linux C Library 0.7.so* Dynamic linker ldd (GNU libc) 2.0.7 Linux C++ Library 2.8.0* Procps 1.2.9 Mount 2.7l Net-tools 1.50 Kbd 0.94 Sh-utils 1.16 assign to jakub Fixed in glibc 2.1.92 |