This commit is contained in:
mauxadoor 2025-07-08 00:33:41 +02:00 committed by GitHub
commit b04cf4ab29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,7 +615,9 @@ detectImage() {
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1
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
DETECTED=$(detectVersion "$info")