Commit 2a50ae9
authored
Format fallback parameter names with the invariant culture (#1897)
parameterToNameLookup pins invariant formatting for the common types, but not
sbyte, Int128, UInt128, BigInteger, nint or nuint. Those fell through to
parameter.ToString(), which uses the ambient culture: under sv-SE with ICU
((sbyte)-5).ToString() is '\u22125' with U+2212 MINUS SIGN, so a theory
parameterised on a negative value of one of those types named its received and
verified files differently than the same test on CI.
Fixed at the fallback rather than by extending the type list, so any formattable
type is covered instead of only the ones someone remembered to add.1 parent 9358598 commit 2a50ae9
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
36 | 58 | | |
37 | 59 | | |
38 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
0 commit comments