[Libguestfs] [PATCH] Mac OS X: Link iconv in libhivex

Richard W.M. Jones rjones at redhat.com
Fri Apr 5 21:20:39 UTC 2013


On Fri, Apr 05, 2013 at 04:57:34PM -0400, Alex Nelson wrote:
> hivexml on OS X was failing with a symbol-not-found error while
> dynamically linking.  Adding iconv to libhivex fixes the issue and lets
> OS X process 'images/large' with hivexml.
> 
> It took careful iconv autotool additions to get compilation working in
> Fedora as well, but these two lines build and run on OS X 10.6 and
> 10.8, and Fedora 17 and 18.

Thanks Alex, I have committed and pushed this.

> Unfortunately, a separate issue is revealed here in OS X, as some of
> the hivexml value data appears as Kanji.  However, that is an issue
> distinct from getting the program to run.

This could be because the Windows Registry doesn't handle encodings
properly, so the contents of the Registry (in effectively some random
encoding) are being displayed as UTF-8 (on the Mac OS X host).  You
might want to see if looking at the raw bytes in the Registry helps
you to determine what the encoding should be.

But note that I've been here before: there's no way that hivex can
know the correct encoding for a random Registry key.  We just don't
have enough information.  It's up to the hivex consumer to provide
this knowledge from reverse-engineering hives.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list