Commit 16fea29
committed
sf.net # 795 : unsupported \UNNNN escape sequence is miscompiled
- escape codepoints > 0xFFFF with "\Unnnnnnnn"
- preserve "\Unnnnnnnn" escape sequences where code point > 0xFFFF
- expect "\Unnnnnnnn" escape to have 8 hex digits
- warn when "\u" or "\U" escape sequences are invalid or truncated
- add capability to return a warning from hReEscape() and hReEscapeW()
- internal - order of functions in src/compiler/hlp-str.bas
- "\Unnnnnnnn" escape sequence is mapped as follows:
when within unicode BMP, "\unnnn", otherwise on linux "\Unnnnnnnn",
or on windows "\uD8XX\uDCXX" surrogate pair.1 parent 4e5f625 commit 16fea29
File tree
9 files changed
+434
-230
lines changed- src/compiler
- tests/wstring
9 files changed
+434
-230
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | | - | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments