Page MenuHomeFreeBSD

sesutil: Remove width limiter on encoded "Desc" field
ClosedPublic

Authored by js on Jan 5 2026, 7:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 16, 11:14 AM
Unknown Object (File)
Mon, Mar 9, 2:49 PM
Unknown Object (File)
Mon, Mar 2, 2:20 PM
Unknown Object (File)
Sat, Feb 28, 4:32 PM
Unknown Object (File)
Feb 18 2026, 6:26 PM
Unknown Object (File)
Feb 17 2026, 12:54 PM
Unknown Object (File)
Jan 21 2026, 10:05 AM
Unknown Object (File)
Jan 19 2026, 4:21 PM
Subscribers

Details

Summary

Remove the width modifiers on the encoded output as libxo appends white spaces to it to match width.

Before:

"description": "Slot 00        ",

After:

"description": "Slot 00",

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

js requested review of this revision.Jan 5 2026, 7:39 PM
js added a reviewer: phk.

I can't reproduce this behavior with "sesutil map --libxo=json,pretty". What is the right way to trigger the bug?

I can't reproduce this behavior with "sesutil map --libxo=json,pretty". What is the right way to trigger the bug?

It's only the show command, try sesutil --libxo:JP show instead.

LGTM. But you should wrap the long line in your commit message . And add something to the commit message indicating that the problem is with the "show" subcommand.

This revision is now accepted and ready to land.Jan 5 2026, 8:18 PM