[Rpm-maint] [rpm-software-management/rpm] --qyeryformat doesn't support '\0' (Issue #1876)
Thomas Moschny
notifications at github.com
Mon Jan 3 19:11:20 UTC 2022
RPM's man page states
> Query formats are modified versions of the standard printf(3) formatting. The format is made up of static strings (which may include standard C character escapes for newlines, tabs, and other special characters) [...]
However, `\0` doesn't seem to be supported, instead the character '0' is emitted:
```
$ rpm -q --queryformat '%{NAME}\0' rpm | xxd
00000000: 7270 6d30 rpm0
```
Rationale: In some contexts it would be handy to use '\0' instead of '\n' as a delimiter in queries returning results for multiple packages.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1876
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1876 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220103/0c80bf59/attachment.html>
More information about the Rpm-maint
mailing list