NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/39347
The following reply was made to PR lib/39347; it has been noted by GNATS.
From: Hubert Feyrer <hubert%feyrer.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/39347
Date: Sun, 16 Nov 2008 14:51:20 +0100 (CET)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323328-527370721-1226843480=:16005
Content-Type: TEXT/PLAIN; format=flowed; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
The commit at
http://mail-index.netbsd.org/source-changes/2008/11/16/msg212783.html
fixes the first of the two example programs, the second one still doesn't
parse the real number properly, and it prints nonsense for the string.
Tested on 5.0_BETA:
Before:
vmnetbsd% uname -rms
NetBSD 5.0_BETA i386
vmnetbsd% ./pr-39347-1
Segmentation fault (core dumped)
vmnetbsd% ./pr-39347-2
Enter an integer, a real number, a character and a string :
17 17.42 f bar
integer = 17
real number = 0.000000
character = b
string = º»´x¾»Hë¿¿UG¿»²»P
After:
vmnetbsd% env LD_LIBRARY_PATH=/usr/cvs/src-5/obj.i386/destdir/lib
./pr-39347-1
10
vmnetbsd% env LD_LIBRARY_PATH=/usr/cvs/src-5/obj.i386/destdir/lib
./pr-39347-2
Enter an integer, a real number, a character and a string :
17 17.42 f bar
integer = 17
real number = 0.000000
character = b
string = ¿¿UG¿»Ô÷±»P
FWIW, here's the output on Mac OS X 10.4:
mini% ./pr-39347-1
10
mini% ./pr-39347-2
Enter an integer, a real number, a character and a string :
17 17.42 f bar
integer = 17
real number = 17.420000
character = f
string = bar
mini% uname -a
Darwin mini.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10
18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
- Hubert
--8323328-527370721-1226843480=:16005--
Home |
Main Index |
Thread Index |
Old Index