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

[MSVC] 21.cwctype test fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.2.0
    • 4.2.1
    • Tests
    • None
    • MSVC, ICC/Windows

    • Patch Available
    • 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

              farid Farid Zaripov
              farid Farid Zaripov
              Votes:
              0 Vote for this issue
              Watchers:
              0 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