Build broken when python is python3

Issue #9 resolved
Jed Brown created an issue
Traceback (most recent call last):                                                                                                                                                             
  File "tools/codegen.py", line 360, in <module>                                                                                                                                               
    main()                                                                                                                                                                                     
  File "tools/codegen.py", line 322, in main                                                                                                                                                   
    src = SourceFile( filename )                                                                                                                                                               
  File "tools/codegen.py", line 171, in __init__                                                                                                                                               
    self._text = fd.read()                                                                                                                                                                     
  File "/usr/lib/python3.7/codecs.py", line 322, in decode                                                                                                                                     
    (result, consumed) = self._buffer_decode(data, self.errors, final)                                                                                                                         
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 2192: invalid continuation byte                                                                                           
make: *** Deleting file 'Makefile.gen'                                                                                                                                                         
make: Nothing to be done for 'all'.                

Note that make reports success despite this failure (it should propagate and exit nonzero).

Comments (2)

  1. Log in to comment