Unverified Commit e3dc8896 authored by mauxadoor's avatar mauxadoor Committed by GitHub
Browse files

fix: wimlib-imagex info returns UTF-16LE but is interpreted as UTF8 (#1293)

parent 22511b16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -615,7 +615,7 @@ 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')
  info=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8)
  checkPlatform "$info" || exit 67

  DETECTED=$(detectVersion "$info")