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

[_MSC_VER] 21.cwchar test fails

    XMLWordPrintableJSON

Details

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

    • Incorrect Behavior

    Description

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

      -----------

      1. ASSERTION (S7) (4 lines):
      2. TEXT: masking macro getwc unexpectedly defined
      3. CLAUSE: lib.c.strings
      4. LINE: 512
      1. ASSERTION (S7) (4 lines):
      2. TEXT: masking macro putwc unexpectedly defined
      3. CLAUSE: lib.c.strings
      4. LINE: 512
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::wcstok() not declared (_RWSTD_NO_WCSTOK = 0, _RWSTD_NO_WCSTOK_IN_LIBC = 0)
      3. CLAUSE: lib.c.strings
      4. LINE: 916
        -----------

      Also there are another assertions (see below), but I think these assertions should be avoided when _RWSTD_NO_XXX == 1 && _RWSTD_NO_XXX_IN_LIBC == 1

      -----------

      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::btowc() not declared (_RWSTD_NO_BTOWC = 1, _RWSTD_NO_BTOWC_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 942
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::wctob() not declared (_RWSTD_NO_WCTOB = 1, _RWSTD_NO_WCTOB_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 943
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::mbrlen() not declared (_RWSTD_NO_MBRLEN = 1, _RWSTD_NO_MBRLEN_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 948
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::mbrtowc() not declared (_RWSTD_NO_MBRTOWC = 1, _RWSTD_NO_MBRTOWC_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 949
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::wcrtomb() not declared (_RWSTD_NO_WCRTOMB = 1, _RWSTD_NO_WCRTOMB_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 950
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::mbsrtowcs() not declared (_RWSTD_NO_MBSRTOWCS = 1, _RWSTD_NO_MBSRTOWCS_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 952
      1. ASSERTION (S7) (4 lines):
      2. TEXT: std::wcsrtombs() not declared (_RWSTD_NO_WCSRTOMBS = 1, _RWSTD_NO_WCSRTOMBS_IN_LIBC = 1)
      3. CLAUSE: lib.c.strings
      4. LINE: 953
        -----------

      Attachments

        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: