I see, well the problem is that for some reason SUSE11 did not encode
some of their packages as UTF8 but rather used Latin-1.
There are multiple possible solutions here:
1. Do not decode application description as a string, but rather as a
byte array - I am not sure regarding other than Python bindings, in C
everything is a byte array anyway (as long as it is null terminated) -
This will make this field less usable and require more decoding to be
done by the user
2. Fallback decode "application description" specifically as latin1
(Something more closer to the first patch I submitted)
3. Fallback decode every string returned to Python as latin1 from any
libguestfs API - the current patch
Sam
On Tue, Jun 30, 2020 at 12:00 PM Pino Toscano <ptoscano(a)redhat.com> wrote:
On Tuesday, 30 June 2020 10:53:54 CEST Sam Eiderman wrote:
> Hey Pino,
>
> Can you search for the previous patches I submitted? I had some discussions
> regarding this with Daniel and Nir.
Sure, I did read those, and I took it into account. What I said does not
invalidate nor contradict that.
--
Pino Toscano