Page 1 of 1

Failed to open iconv from UTF-8 to UTF-16LE: Invalid argument

Posted: Sun May 22, 2016 10:15 am
by cheche
I am trying to use wimlib for http://unattended.sourceforge.net/
I am able to compile wimlib 1.9.1 within the linux boot system. But when I try to execute

Code: Select all

wimlib-imagex apply /z/os/install.wim 3 /dev/sda1
I get:

Code: Select all

[ERROR] Failed to open iconv from UTF-8 to UTF-16LE: Invalid argument
[ERROR] Path "/" does not existe in WIM image 3
ERROR: Exiting with error code 49:
The path does not exist in the WIM image
Can a good soul give me a hint of what would be the problem?

Re: Failed to open iconv from UTF-8 to UTF-16LE: Invalid argument

Posted: Sun May 22, 2016 2:54 pm
by synchronicity
Include the UTF-16 iconv module in your boot environment:

/usr/lib/gconv/gconv-modules
/usr/lib/gconv/UTF-16.so

Re: Failed to open iconv from UTF-8 to UTF-16LE: Invalid argument

Posted: Sun May 22, 2016 8:21 pm
by cheche
Spot on!, It works just fine. Thank you so much!
I wonder if GNU libiconv is not needed on the linux boot system. Wimlib just use the libraries from within Glibc.

Re: Failed to open iconv from UTF-8 to UTF-16LE: Invalid argument

Posted: Fri Aug 26, 2016 5:55 am
by synchronicity
For future reference: wimlib 1.10.0 no longer uses iconv, so the iconv modules are no longer needed.