Compare commits

...

2 Commits

Author SHA1 Message Date
mauxadoor
f9efa3e0ee
Merge 57ac15b62d into 5248397845 2025-09-02 14:31:33 +01:00
StephanP
57ac15b62d wimlib-imagex info returns UTF-16LE but is interpreted as UTF8 2025-07-03 17:35:44 +02:00

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")