2016-04-20 17:31 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbstrfmt.c
* add to output trailing % in format pattern just like other % characters
which are not part of valid format string, i.e. in this code:
? hb_StrFormat( "%-% %1%q%*%" )
only the last % was silently eaten from output
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2016-04-20 17:31 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* src/rtl/hbstrfmt.c
|
||||
* add to output trailing % in format pattern just like other % characters
|
||||
which are not part of valid format string, i.e. in this code:
|
||||
? hb_StrFormat( "%-% %1%q%*%" )
|
||||
only the last % was silently eaten from output
|
||||
|
||||
2016-04-20 17:19 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* src/rtl/hbstrfmt.c
|
||||
! fixed wrongly added to output character after unclosed format strings,
|
||||
|
||||
@@ -122,9 +122,6 @@ PHB_ITEM hb_strFormat( PHB_ITEM pItemReturn, PHB_ITEM pItemFormat, int iCount, P
|
||||
|
||||
pFmtSave = pFmt;
|
||||
|
||||
if( ++pFmt >= pFmtEnd )
|
||||
continue;
|
||||
|
||||
if( *pFmt == '%' )
|
||||
{
|
||||
bufadd( &buffer, pFmt++, 1 );
|
||||
|
||||
Reference in New Issue
Block a user