mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
wimlib-imagex info returns UTF-16LE but is interpreted as UTF8
This commit is contained in:
parent
50f6467dea
commit
57ac15b62d
1 changed files with 3 additions and 1 deletions
|
|
@ -615,7 +615,9 @@ detectImage() {
|
||||||
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1
|
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info=$(wimlib-imagex info -xml "$wim" | tr -d '\000')
|
wimlib-imagex info -xml "$wim" > wimxml.xml
|
||||||
|
iconv -f UTF-16LE -t UTF-8 wimxml.xml -o wimxmlutf8.xml
|
||||||
|
info=$(cat wimxmlutf8.xml)
|
||||||
checkPlatform "$info" || exit 67
|
checkPlatform "$info" || exit 67
|
||||||
|
|
||||||
DETECTED=$(detectVersion "$info")
|
DETECTED=$(detectVersion "$info")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue