Commit d338d0b
gh-152905: Tolerate equivalent-space substitution in the encoding test
An 8-bit locale substitutes an equivalent for a space character it cannot
encode: e.g. es_ES uses U+202F NARROW NO-BREAK SPACE in AM_STR/PM_STR in
its UTF-8 locale but U+00A0 NO-BREAK SPACE in the ISO-8859-1 one. Fold
space-separator characters together before comparing so the test ignores
such substitutions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 575cf43 commit d338d0b
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
318 | 327 | | |
319 | 328 | | |
320 | 329 | | |
| |||
332 | 341 | | |
333 | 342 | | |
334 | 343 | | |
335 | | - | |
| 344 | + | |
| 345 | + | |
336 | 346 | | |
337 | 347 | | |
338 | 348 | | |
| |||
0 commit comments