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)
Sun, Jul 26, 5:39 AM
Unknown Object (File)
Sat, Jul 25, 10:54 PM
Unknown Object (File)
Sat, Jul 25, 1:22 AM
Unknown Object (File)
Thu, Jul 16, 6:33 PM
Unknown Object (File)
Wed, Jul 15, 1:34 PM
Unknown Object (File)
Wed, Jul 15, 7:01 AM
Unknown Object (File)
Wed, Jul 15, 7:01 AM
Unknown Object (File)
Fri, Jul 10, 3:08 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