1. 10 Feb, 2019 1 commit
  2. 05 Apr, 2018 1 commit
    • volkov-am's avatar
      MakeHeader.py: Fix for non-utf8 environments (#770) · 7cfaa9de
      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
      7cfaa9de
  3. 27 Jul, 2017 1 commit
  4. 21 Apr, 2017 1 commit
  5. 22 Jan, 2015 1 commit
  6. 20 Nov, 2014 1 commit
  7. 17 Jan, 2014 1 commit
  8. 26 Dec, 2011 1 commit
  9. 10 Aug, 2007 1 commit
  10. 17 May, 2007 1 commit
  11. 06 Jun, 2006 1 commit
  12. 05 Jun, 2006 1 commit
  13. 23 Mar, 2006 1 commit