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
F161218881: D54536.id169089.diff
Wed, Jul 1, 7:41 PM
Unknown Object (File)
Thu, Jun 18, 7:40 AM
Unknown Object (File)
May 31 2026, 7:11 AM
Unknown Object (File)
May 27 2026, 11:56 AM
Unknown Object (File)
May 16 2026, 5:22 AM
Unknown Object (File)
May 16 2026, 5:22 AM
Unknown Object (File)
May 15 2026, 8:32 AM
Unknown Object (File)
May 15 2026, 1:21 AM
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