From: Andrei Zmievski Date: Wed, 20 Dec 2006 18:33:27 +0000 (+0000) Subject: Align Unicode and binary versions of formatted printing. X-Git-Tag: RELEASE_1_0_0RC1~615 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d90ff003c26fdeb97937a35bc694c9b538b91e5;p=php Align Unicode and binary versions of formatted printing. --- diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index c52e432dd3..b031bc8513 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -431,7 +431,7 @@ php_u_sprintf_appenddouble(UChar **buffer, int *pos, TSRMLS_DC) { char num_buf[NUM_BUF_SIZE]; - char *s = NULL, *q, s_fmt; + char *s = NULL, s_fmt; UChar *uni_s; int s_len = 0, is_negative = 0; #ifdef HAVE_LOCALE_H @@ -506,7 +506,6 @@ php_u_sprintf_appenddouble(UChar **buffer, int *pos, s = num_buf; s_len++; } - s[s_len] = '\0'; break; case 0x67 /* 'g' */: @@ -530,10 +529,6 @@ php_u_sprintf_appenddouble(UChar **buffer, int *pos, } s_len = strlen(s); - - if (fmt == 0x47 /* 'G' */ && (q = strchr(s, 'e')) != NULL) { - *q = 'E'; - } break; }