Skip to content

Commit 2a14b75

Browse files
Fix locale-specific number formatting in codepage error
Use strconv.Itoa instead of %d to avoid locale-specific thousands separators in error message.
1 parent 424cc32 commit 2a14b75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/sqlcmd/codepage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func GetEncoding(codepage int) (encoding.Encoding, error) {
224224
return traditionalchinese.Big5, nil
225225

226226
default:
227-
return nil, localizer.Errorf("unsupported codepage %d", codepage)
227+
return nil, localizer.Errorf("unsupported codepage %s", strconv.Itoa(codepage))
228228
}
229229
}
230230

0 commit comments

Comments
 (0)