Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11670

GDB is broken when char has non-ascii value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 3.1.0-rc1
    • Qt Creator 3.0.1, Qt Creator 3.1.0-rc1
    • Debugger
    • None
    • Windows, GDB 7.7 (and older)
    • 8303f793abc95de32c3525bd9b8f7e85f7d5e758

      int main()
      {
          char ch = 160;
          return 0; // Break here
      }

      Results in:

      Python Exception <type 'exceptions.UnicodeEncodeError'> 'ascii' codec can't encode character u'\\xa0' in position 1320: ordinal not in range(160)

      This can be worked around by replacing "print(theDumper.run(args))" with "print(theDumper.run(args).encode('ascii', 'replace'))", but it still doesn't work well.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes