Re: [Libguestfs] [PATCH 2/2] python: Use bytes instead of str for event callback buffer

2023-02-16 Thread Laszlo Ersek
On 2/14/23 19:51, Richard W.M. Jones wrote: > The event callback gets a buffer parameter which is usually something > like a log message. However as it comes from C it is not necessarily > well-formed (eg) UTF-8 but could contain any old byte sequence. > > In the test case provided by the

Re: [Libguestfs] [PATCH 2/2] python: Use bytes instead of str for event callback buffer

2023-02-15 Thread Yonatan Shtarkman
Thanks for the update! On Wed, Feb 15, 2023 at 3:27 PM Richard W.M. Jones wrote: > > The series was pushed as: > > https://github.com/libguestfs/libguestfs/commit/6ef5837e2d8c5d4d83eff51c0201eb2e08f719de > >

Re: [Libguestfs] [PATCH 2/2] python: Use bytes instead of str for event callback buffer

2023-02-15 Thread Richard W.M. Jones
The series was pushed as: https://github.com/libguestfs/libguestfs/commit/6ef5837e2d8c5d4d83eff51c0201eb2e08f719de https://github.com/libguestfs/libguestfs/commit/bbf396fc5562b4f0e27132f6b10c8a503f71effc -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my

[Libguestfs] [PATCH 2/2] python: Use bytes instead of str for event callback buffer

2023-02-14 Thread Richard W.M. Jones
The event callback gets a buffer parameter which is usually something like a log message. However as it comes from C it is not necessarily well-formed (eg) UTF-8 but could contain any old byte sequence. In the test case provided by the reported, we failed to encode the buffer as str with this