Commit 515720d
committed
lib: remove Latin-1 fast path from TextDecoder
The Latin-1 fast path was incorrectly enabled only for windows-1252
encoding, which differs from ISO-8859-1 (Latin-1) in the 0x80-0x9F
range. Since windows-1252 cannot use the Latin-1 fast path (it requires
different character mappings via ICU), and no other encoding uses it,
the entire Latin-1 fast path mechanism has been removed.
This simplifies the code while fixing the windows-1252 decoding issue.
Windows-1252 now correctly uses the ICU decoder for all characters.
Fixes: #565421 parent 24a2207 commit 515720d
File tree
2 files changed
+1
-60
lines changed- lib/internal
- test/parallel
2 files changed
+1
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
420 | 419 | | |
421 | 420 | | |
422 | 421 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | 422 | | |
430 | 423 | | |
431 | | - | |
| 424 | + | |
432 | 425 | | |
433 | 426 | | |
434 | 427 | | |
| |||
445 | 438 | | |
446 | 439 | | |
447 | 440 | | |
448 | | - | |
449 | 441 | | |
450 | 442 | | |
451 | 443 | | |
452 | 444 | | |
453 | 445 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | 446 | | |
459 | 447 | | |
460 | 448 | | |
| |||
Lines changed: 0 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
0 commit comments