File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -703,15 +703,15 @@ def __init__(
703703 cpu_family = { family !r}
704704 endian = 'little'
705705 ''' )
706- self ._meson_cross_file .write_text (cross_file_data )
706+ self ._meson_cross_file .write_text (cross_file_data , encoding = 'utf-8' )
707707 self ._meson_args ['setup' ].extend (('--cross-file' , os .fspath (self ._meson_cross_file )))
708708
709709 # write the native file
710710 native_file_data = textwrap .dedent (f'''
711711 [binaries]
712712 python = '{ sys .executable } '
713713 ''' )
714- self ._meson_native_file .write_text (native_file_data )
714+ self ._meson_native_file .write_text (native_file_data , encoding = 'utf-8' )
715715
716716 # reconfigure if we have a valid Meson build directory. Meson
717717 # uses the presence of the 'meson-private/coredata.dat' file
You can’t perform that action at this time.
0 commit comments