}
// Replace the canonical decimal separator with a localized version
int decimal = buf.indexOf(CanonicalDecimalSeparator);
if (decimal > -1) {
buf.replace(decimal, decimalSep, 1);
}
// temporary hack to work around bug in IE where
// the group separator of Canadian English is ';'
if (locale.equals(java.util.Locale.CANADA)) {