Commit d781d69
committed
Fix prism error messages with multibyte truncation
When a line is going to be displayed in an error message that
contains multibyte characters, we need to respect the encoding
of the source and truncate only at a character boundary, as
opposed to a raw byte boundary.
Fixes [Bug #21528]1 parent 4f4b4e3 commit d781d69
1 file changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10627 | 10627 | | |
10628 | 10628 | | |
10629 | 10629 | | |
10630 | | - | |
| 10630 | + | |
| 10631 | + | |
| 10632 | + | |
| 10633 | + | |
| 10634 | + | |
| 10635 | + | |
| 10636 | + | |
| 10637 | + | |
| 10638 | + | |
| 10639 | + | |
| 10640 | + | |
| 10641 | + | |
| 10642 | + | |
| 10643 | + | |
| 10644 | + | |
| 10645 | + | |
| 10646 | + | |
| 10647 | + | |
| 10648 | + | |
| 10649 | + | |
10631 | 10650 | | |
10632 | 10651 | | |
10633 | 10652 | | |
| |||
0 commit comments