omnet
aien-dev/omnet
Brought by drakestapleton
GitHub aien-dev/omnet#17 (code only)
Apply it
git checkout -b patch-a4e27dbb85bcd4e0 6dbcbd773b083b67929d02184f3e1ae5f4ab5fe5 curl -fsSL https://interplane.io/drakestapleton/omnet/patches/a4e27dbb85bcd4e0.patch | git am
Provenance
github-import 1
aien-dev/omnet
17
37636c72e20811af4d78bdb0c48945e8cf4cc7c6
{"kind":"github-import","owner":"aien-dev","repo":"omnet","number":17,"url":"https://github.com/aien-dev/omnet/pull/17","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:42Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/om/json/README.md b/om/json/README.md index 17a8bed..e5f1a19 100644 --- a/om/json/README.md +++ b/om/json/README.md @@ -92,8 +92,8 @@ 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 -`\ufffd`; a valid U+FFFD scalar remains literal UTF-8, matching Go. Internal helpers all have the +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 +U+FFFD scalar is written the same way, matching Go. Internal helpers all have the `json` prefix; callers should use the APIs above. ## Focused tests diff --git a/om/json/json.om b/om/json/json.om index 9812919..1038cec 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 = jsonuesc o p v +p = jsonrune o p v else p = jsonrune o p v end