omnet
aien-dev/omnet
Brought by drakestapleton
GitHub aien-dev/omnet#19 (code only)
Apply it
git checkout -b patch-3501025faac6398e d5e63cdc0713560a3ab7de61ba1410385973e20e curl -fsSL https://interplane.io/drakestapleton/omnet/patches/3501025faac6398e.patch | git am
Provenance
github-import 1
aien-dev/omnet
19
743b9314b3fc9212f5cb211ebcb16a015d5b1afd
{"kind":"github-import","owner":"aien-dev","repo":"omnet","number":19,"url":"https://github.com/aien-dev/omnet/pull/19","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:43Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/om/json/README.md b/om/json/README.md index e5f1a19..c1d8fdd 100644 --- a/om/json/README.md +++ b/om/json/README.md @@ -92,7 +92,7 @@ syntax state: punctuation/field sequencing is the caller's responsibility. canonicalization scheme. Output can exceed the input size and fail explicitly. String output matches Go `json.Marshal(string)`: standard short control escapes, lowercase `\u` -hex, HTML escapes for `<`, `>` and `&`, and escapes for U+2028/U+2029. Invalid UTF-8 becomes the replacement character as raw UTF-8 bytes; a valid + hex, HTML escapes for `<`, `>`, and `&`, and escapes for U+2028/U+2029. Invalid UTF-8 becomes the six-character escape `\ufffd`, matching the Go 1.26 encoder the test corpus is generated with; a valid U+FFFD scalar is written as its raw UTF-8 bytes. U+FFFD scalar is written the same way, matching Go. Internal helpers all have the `json` prefix; callers should use the APIs above. diff --git a/om/json/json.om b/om/json/json.om index 1038cec..9812919 100644 --- a/om/json/json.om +++ b/om/json/json.om @@ -650,7 +650,7 @@ p = jsonuesc o p v end else if and eq v 65533 eq get r 1 1 -p = jsonrune o p v +p = jsonuesc o p v else p = jsonrune o p v end