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

[MSVC] rw_putenv() limitations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.2.1
    • Test Driver
    • None
    • MSVC, ICC/Windows

    • Patch Available
    • 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. environ.cpp.diff
          2 kB
          Farid Zaripov
        2. stdcxx-646.patch
          12 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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 8h 4m
                  8h 4m