I have a simple program that uses the BIO printf functionality:

#include <stdio.h>
#include "openssl/bio.h"


int main(int argc, char* argv[])
{
    BIO *myBio = BIO_new_fp(stdout, 0);
    BIO_printf(myBio, "float: %.1f\n", (float) 1000.1234);
    return 0;
}


When I run this against either of our builds of 0.9.7c (or b) on HP-UX
(PA and IA) the output of the above program will be "float: 000.1"  Note
that the front part of the whole value is cut off.

This does not occur on Linux.

My make options (custom, config line from Configure script) are:
"hpux-parisc-cc","cc:+O3 +Optrs_strongly_typed +Z -Ae +DS2.0a
+DAportable +ESlit -DB_ENDIAN -DBN_DIV2W
-DMD32_XARRAY::-D_REENTRANT::-Wl,+s -ldld:MD2_CHAR RC4_INDEX RC4_CHAR
DES_UNROLL DES_RISC1
DES_INT::::::::::dl:hpux-shared:+Z::.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)"


Any ideas ?

Thanks,

Rhett

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to