mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
patman: Use unicode for file I/O
At present patman test fail in some environments which don't use utf-8 as the default file encoding. Add this explicitly. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -72,12 +72,12 @@ Signed-off-by: Simon Glass <sjg@chromium.org>
|
||||
'''
|
||||
out = ''
|
||||
inhandle, inname = tempfile.mkstemp()
|
||||
infd = os.fdopen(inhandle, 'w')
|
||||
infd = os.fdopen(inhandle, 'w', encoding='utf-8')
|
||||
infd.write(data)
|
||||
infd.close()
|
||||
|
||||
exphandle, expname = tempfile.mkstemp()
|
||||
expfd = os.fdopen(exphandle, 'w')
|
||||
expfd = os.fdopen(exphandle, 'w', encoding='utf-8')
|
||||
expfd.write(expected)
|
||||
expfd.close()
|
||||
|
||||
|
Reference in New Issue
Block a user