[Libguestfs] [PATCH v12 04/11] New API: Deprecate hivex_value_utf8 and replace with hivex_value_string.

Pino Toscano ptoscano at redhat.com
Wed Sep 13 08:19:47 UTC 2017


On Tuesday, 12 September 2017 19:58:44 CEST Richard W.M. Jones wrote:
> On Tue, Sep 12, 2017 at 06:42:11PM +0200, Pino Toscano wrote:
> > On Wednesday, 9 August 2017 19:23:39 CEST Richard W.M. Jones wrote:
> > > hivex has a function hivex_value_string.  We were not calling it under
> > > the mistaken belief that because hivex implements this using iconv,
> > > the function wouldn't work inside the daemon.  Instead we
> > > reimplemented the functionality in the library.
> > > 
> > > This commit deprecates hivex_value_utf8 and removes the library side
> > > code.  It replaces it with a plain wrapper around hivex_value_string.
> > > 
> > > Thanks: Pino Toscano
> > > ---
> > 
> > The only thing here is that I would leave hivex_value_utf8 as non-daemon
> > function, just to avoid adding an extra daemon function.
> 
> The saving in code on the library side is quite significant:
> 
>  lib/hivex.c                            | 111 --------------------------------- 
> plus it's pretty ugly code since it has to use iconv ...

Oh sorry, I did not mean to leave it as-is, but to just leave the
wrapper calling hivex_value_string there.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170913/0f8a98c8/attachment.sig>


More information about the Libguestfs mailing list