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

Comments, questions, bug reports, etc.
Post Reply
cheche
Posts: 2
Joined: Sun May 22, 2016 10:12 am

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

Post 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?
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

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

Post by synchronicity »

Include the UTF-16 iconv module in your boot environment:

/usr/lib/gconv/gconv-modules
/usr/lib/gconv/UTF-16.so
cheche
Posts: 2
Joined: Sun May 22, 2016 10:12 am

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

Post 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.
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

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

Post by synchronicity »

For future reference: wimlib 1.10.0 no longer uses iconv, so the iconv modules are no longer needed.
Post Reply