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

locale tests crash if unable to get at least one user provided locale

    XMLWordPrintableJSON

    Details

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

      Description

      Running a locale test with the '--locale' option that has no valid locale names will cause the test to crash. An example...

      C:\build\stdcxx\win32.vc8\msvc-8.0\15d\tests>22.locale.time.put.mt.exe --locales=x

      1. INFO (S1) (10 lines):
      2. TEXT:
      3. COMPILER: MSVC, _MSC_VER = 1400
      4. ENVIRONMENT: i86 running win32
      5. FILE: 22.locale.time.put.mt.cpp
      6. COMPILED: Aug 3 2007, 13:55:51
      7. COMMENT: thread safety
        ############################################################
      1. CLAUSE: lib.locale.time.put
      1. INFO (S1) (3 lines):
      2. TEXT: testing std::time_put<charT> with 2 threads, 100000 iterations each, in locales { "x" }
      3. CLAUSE: lib.locale.time.put
      1. INFO (S1) (3 lines):
      2. TEXT: exercising std::time_put<char>
      3. CLAUSE: lib.locale.time.put

      This application has requested the Runtime to terminate it in an unusual way.
      Please contact the application's support team for more information.

        Attachments

        1. fix.patch
          1 kB
          Travis Vitek

          Activity

            People

            • Assignee:
              vitek Travis Vitek
              Reporter:
              vitek Travis Vitek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: