[Bug 285177] libxo does not quote tabs in JSON strings.

[email protected] Thu, 13 Mar 2025 19:43:31 +0000
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285177

Jose Luis Duran <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Jose Luis Duran <[email protected]> ---
Created attachment 258637
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258637&action=edit
JSON escape characters

Thank you for the bug report.
I would suggest reporting this issue upstream.

With the attached program, one can verify that not all characters are properly
escaped for JSON output:

    % cc -lxo bz_285096.c
    % ./a.out --libxo json,pretty | jq
    jq: parse error: Invalid string: control characters from U+0000 through
U+001F must be escaped at line 6, column 20

I have only checked xo_escape_json, but I think xo_escape_xml also needs a
similar treatment.

-- 
You are receiving this mail because:
You are the assignee for the bug.