diff options
| author | YongDo-Hyun <froster12@naver.com> | 2025-12-27 01:06:26 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-27 19:57:09 +0300 |
| commit | df0519bea5390ac8f3d9a0e168e2f799bd068985 (patch) | |
| tree | e05da30517566a26ae3380c26bb38a88c9c92f24 /src/text | |
| parent | a89a6eac665c1b53d2c511d2e8ccb40e3a6949c4 (diff) | |
| download | Project-Tick-df0519bea5390ac8f3d9a0e168e2f799bd068985.tar.gz Project-Tick-df0519bea5390ac8f3d9a0e168e2f799bd068985.zip | |
feat: enhance error handling in ozlibstream and improve JSON escaping in json_formatter; add make_numeric_tag for cleaner tag creation
Signed-off-by: YongDo-Hyun <froster12@naver.com>
Diffstat (limited to 'src/text')
| -rw-r--r-- | src/text/json_formatter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text/json_formatter.cpp b/src/text/json_formatter.cpp index bd882c15d2..06a9c54f60 100644 --- a/src/text/json_formatter.cpp +++ b/src/text/json_formatter.cpp @@ -217,7 +217,7 @@ namespace //anonymous default: if (static_cast<unsigned char>(c) < 32 || c == 127) { // Control characters, escape as \u00XX - os << "\\u00" << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(static_cast<unsigned char>(c)); + os << "\\u00" << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(c); } else { os << c; } |
