Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13414

ASCII is a 7-bit encoding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.2
    • 4.6.3
    • Documentation
    • None
    • 8540ceb8c98fa225394385b6147b662adb67b58c

      The documentation for QString::fromAscii says:
      > Returns a QString initialized with the first size characters of the 8-bit ASCII string str.
      This is a misunderstanding because ASCII (proper name ANSI X3.4/1968) is a 7-bit encoding. [1]
      The documentation would be just fine with
      > Returns a QString initialized with the first size characters of the character string str.
      with the actual mechanism explained below as it is now.

      As a side note, it would be nice if this function used the execution character set instead of fixed ISO-Latin-1. Too bad there is no way of knowing that (as of gcc, especially because the execution character set can change from one compilation unit to another).
      ___
      [1] <URL:http://www.ecma-international.org/publications/standards/Ecma-006.htm>

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

            jerome.pasion Jerome Pasion
            yecril71pl Christopher Yeleighton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes