Commit 3319527
committed
Use encoding and CR-aware concatenation
The old `cat` method used here does not consider encodings or
code ranges, instead just slamming the given bytes directly into
the existing buffer. This causes problem when those bytes or the
encoding they came from does not match the existing encoding or
code range, leading to issues like #247.
The fix here uses a code range-aware method for doing the bytes
concatenation, and resolved the related bug.
Fixes #2471 parent 710c1a4 commit 3319527
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments