Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-638

[MSVC] 21.cwctype test fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Tests
    • Labels:
      None
    • Environment:

      MSVC, ICC/Windows

    • Patch Info:
      Patch Available
    • Severity:
      Incorrect Behavior

      Description

      The 21.cwctype.cpp test fails with the following assertions:

      -----------

      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::wctype (const char*) not defined
      3. CLAUSE: lib.c.strings
      4. LINE: 873
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::wctrans (const char*) not defined
      3. CLAUSE: lib.c.strings
      4. LINE: 899
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::towctrans(wint_t, wctrans_t) not defined
      3. CLAUSE: lib.c.strings
      4. LINE: 909
        -----------

      Also there are number of assertions like this:
      ----------

      1. ASSERTION (S7) (3 lines):
      2. TEXT: ' ' mask extra bits print (0x40)
      3. CLAUSE: lib.c.strings
        ----------

      In the latter the test expects that iswctype() returns 0 for the characters > 127 (because in the char_mask [256] array initialized only first 128 elements), but actually this is not true.

        Attachments

        1. 21.cwctype.cpp.diff
          5 kB
          Farid Zaripov

          Issue Links

            Activity

              People

              • Assignee:
                farid Farid Zaripov
                Reporter:
                farid Farid Zaripov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h