mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-3499 Probable fix for when %g uses %e.
X-SVN-Rev: 14884
This commit is contained in:
parent
95b0a1d085
commit
e3decf37a2
1 changed files with 3 additions and 0 deletions
|
@ -821,6 +821,9 @@ u_printf_scidbl_handler(const u_printf_stream_handler *handler,
|
|||
{
|
||||
/* use 'e' or 'E' notation */
|
||||
scidbl_info.fSpec = scidbl_info.fSpec - 2;
|
||||
if (scidbl_info.fPrecision == -1) {
|
||||
scidbl_info.fPrecision = 5;
|
||||
}
|
||||
/* call the scientific handler */
|
||||
return u_printf_scientific_handler(handler, context, formatBundle, &scidbl_info, args);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue