Commit 52d2b5a
[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 f377f58 commit 52d2b5a
2 files changed
+26
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3073 | 3073 | | |
3074 | 3074 | | |
3075 | 3075 | | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
3076 | 3086 | | |
3077 | 3087 | | |
3078 | 3088 | | |
| |||
3084 | 3094 | | |
3085 | 3095 | | |
3086 | 3096 | | |
3087 | | - | |
| 3097 | + | |
3088 | 3098 | | |
3089 | 3099 | | |
| 3100 | + | |
| 3101 | + | |
3090 | 3102 | | |
3091 | 3103 | | |
3092 | 3104 | | |
| |||
3104 | 3116 | | |
3105 | 3117 | | |
3106 | 3118 | | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
3107 | 3126 | | |
3108 | 3127 | | |
3109 | 3128 | | |
| |||
| 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