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

[MSVC] rw_putenv() limitations

    Details

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

      MSVC, ICC/Windows

    • Patch Info:
      Patch Available
    • Severity:
      Incorrect Behavior

      Description

      In 0.printf.cpp test the rw_putenv() is used to define variable to null and to undefine variable.

      ---------------
      1. rw_putenv ("NULL="); // define to null (empty string)
      2. rw_putenv ("UNSET"); // undefine if defined
      ---------------

      But on MSVC putenv() could not define variable to null, so:
      1. rw_putenv ("NULL="); undefines the NULL variable instead defining it to null;
      2. rw_putenv ("UNSET"); does nothing instead of undefining variable

        Attachments

        1. stdcxx-646.patch
          12 kB
          Farid Zaripov
        2. environ.cpp.diff
          2 kB
          Farid Zaripov

          Issue Links

            Activity

              People

              • Assignee:
                farid Farid Zaripov
                Reporter:
                farid Farid Zaripov

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 8h 4m
                  8h 4m

                    Issue deployment