Skip to content

jq: parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 1, column 65 #373

@vt-alt

Description

@vt-alt

Perhaps misformatted json output:

cpu_features-0.9.0$ /usr/bin/list_cpu_features --json | jq .
jq: parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 1, column 65
cpu_features-0.9.0$ /usr/bin/list_cpu_features --json | head -c66 | xxd
00000000: 7b22 6172 6368 223a 2278 3836 222c 2262  {"arch":"x86","b
00000010: 7261 6e64 223a 2249 6e74 656c 2852 2920  rand":"Intel(R)
00000020: 436f 7265 2854 4d29 2069 392d 3130 3930  Core(TM) i9-1090
00000030: 3020 4350 5520 4020 322e 3830 4748 7a06  0 CPU @ 2.80GHz.
00000040: 222c                                     ",

This is ^F (0x06) char in brand string.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions