We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e88ba1a commit 85feea1Copy full SHA for 85feea1
libs/sm/vhdutil.py
@@ -96,6 +96,12 @@ def ioretry(cmd, text=True):
96
def getBlockSize(path):
97
cmd = [VHD_UTIL, "read", "-pn", path]
98
ret = ioretry(cmd)
99
+ if isinstance(ret, bytes):
100
+ import locale
101
+ ret = ret.decode(
102
+ encoding = locale.getpreferredencoding(False),
103
+ errors="replace"
104
+ )
105
fields = ret.strip().split('\n')
106
for field in fields:
107
field = field.strip()
0 commit comments