Page MenuHomeFreeBSD

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

Authored by js on Mon, Jan 5, 7:39 PM.
Tags
None
Referenced Files
F141927174: D54536.diff
Mon, Jan 12, 8:26 PM
F141878094: D54536.diff
Sun, Jan 11, 9:35 PM
Unknown Object (File)
Sat, Jan 10, 3:16 PM
Unknown Object (File)
Sat, Jan 10, 5:19 AM
Unknown Object (File)
Sat, Jan 10, 4:28 AM
Unknown Object (File)
Sat, Jan 10, 3:54 AM
Unknown Object (File)
Sat, Jan 10, 12:32 AM
Unknown Object (File)
Fri, Jan 9, 5:05 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.Mon, Jan 5, 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.Mon, Jan 5, 8:18 PM