Compare commits

...

2 Commits

Author SHA1 Message Date
mauxadoor
21eb802bf4
Merge 57ac15b62d into 0b7e8f01be 2025-09-04 14:51:14 +08: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 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")