ICU-11652 Change default padding character from astricks 0x002A to space 0x0020
X-SVN-Rev: 37378
This commit is contained in:
parent
f917158366
commit
4a51a2f421
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1997-2014, International Business Machines Corporation and *
|
||||
* Copyright (C) 1997-2015, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -91,7 +91,7 @@ DecimalFormatPattern::DecimalFormatPattern()
|
||||
fFormatWidth(0),
|
||||
fRoundingIncrementUsed(FALSE),
|
||||
fRoundingIncrement(),
|
||||
fPad(kPatternPadEscape),
|
||||
fPad(kDefaultPad),
|
||||
fNegPatternsBogus(TRUE),
|
||||
fPosPatternsBogus(TRUE),
|
||||
fNegPrefixPattern(),
|
||||
|
@ -448,7 +448,7 @@ DecimalFormat::construct(UErrorCode& status,
|
||||
fSymbols = symbolsToAdopt; // Do this BEFORE aborting on status failure!!!
|
||||
fRoundingIncrement = NULL;
|
||||
fRoundingMode = kRoundHalfEven;
|
||||
fPad = kPatternPadEscape;
|
||||
fPad = kDefaultPad;
|
||||
fPadPosition = kPadBeforePrefix;
|
||||
if (U_FAILURE(status))
|
||||
return;
|
||||
|
@ -7373,7 +7373,7 @@ void NumberFormatTest::Test10468ApplyPattern() {
|
||||
fmt.applyPattern("AA#,##0.00ZZ", status);
|
||||
|
||||
// Oops this still prints 'a' even though we changed the pattern.
|
||||
if (fmt.getPadCharacterString() != UnicodeString("*")) {
|
||||
if (fmt.getPadCharacterString() != UnicodeString(" ")) {
|
||||
errln("applyPattern did not clear padding character.");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user