Commit 76f2153
committed
[nrf fromtree] cmake: escape json input string
Escape the json input string given to `to_yaml()` function and the
content given to `yaml_set()` function.
This ensures that a string like `foo\bar` becomes `foo\\bar` during
internal CMake json processing and when written to the file it becomes
`foo\bar`.
Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit cdbe424)1 parent ced7ee1 commit 76f2153
2 files changed
+26
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3060 | 3060 | | |
3061 | 3061 | | |
3062 | 3062 | | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
3063 | 3073 | | |
3064 | 3074 | | |
3065 | 3075 | | |
| |||
3071 | 3081 | | |
3072 | 3082 | | |
3073 | 3083 | | |
3074 | | - | |
| 3084 | + | |
3075 | 3085 | | |
3076 | 3086 | | |
| 3087 | + | |
| 3088 | + | |
3077 | 3089 | | |
3078 | 3090 | | |
3079 | 3091 | | |
| |||
3091 | 3103 | | |
3092 | 3104 | | |
3093 | 3105 | | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
3094 | 3113 | | |
3095 | 3114 | | |
3096 | 3115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
| 426 | + | |
426 | 427 | | |
427 | | - | |
| 428 | + | |
| 429 | + | |
428 | 430 | | |
429 | 431 | | |
430 | 432 | | |
| |||
539 | 541 | | |
540 | 542 | | |
541 | 543 | | |
542 | | - | |
| 544 | + | |
| 545 | + | |
543 | 546 | | |
544 | 547 | | |
545 | 548 | | |
| |||
0 commit comments