1. 24 Aug, 2018 1 commit
    • volkov-am's avatar
      MakeHeader.py: Fix for non-utf8 environments (#770) · 791aae87
      volkov-am authored
      Header creation fails with non-utf8 locale and python3.
      Simply set LC_ALL="C" and use python3 to reproduce the issue.
      
      env LC_ALL="C" ./scripts/MakeHeader.py MetersPanel.c
      Traceback (most recent call last):
        File "./scripts/MakeHeader.py", line 32, in <module>
          for line in file.readlines():
        File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
          return codecs.ascii_decode(input, self.errors)[0]
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 956: ordinal not in range(128)
      
      This changes is python2 and python3 compatible
      
      cStringIO.StringIO module is removed because it is not able to accept unicode strings
      https://docs.python.org/2/library/stringio.html#cStringIO.StringIO
      791aae87
  2. 23 May, 2018 3 commits
  3. 10 Apr, 2018 2 commits
  4. 06 Apr, 2018 34 commits