Comment 3 for bug 1773150

Revision history for this message
Lee Trager (ltrager) wrote : Re: [2.4.0~rc1] smartctl verify fails due to Unicode in Disk Vendor Name

I'm having some trouble reproducing this. I download the output uploaded and was able to read it with

import re
smart_support_regex = re.compile('SMART support is:\s+Available')
output = open('smartctl unicode.txt', 'rb').read()
match = smart_support_regex.search(output.decode('utf-8')
match is not None
True

If you modify

match = smart_support_regex.search(output.decode('utf-8'))

To

match = smart_support_regex.search(output.decode('utf-8', 'replace'))

Does the smartctl test pass?