You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Farid Zaripov (JIRA)" <ji...@apache.org> on 2008/01/25 17:39:34 UTC

[jira] Updated: (STDCXX-646) [MSVC] rw_putenv() limitations

     [ https://issues.apache.org/jira/browse/STDCXX-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-646:
---------------------------------

    Attachment: stdcxx-646.patch

The patch is attached.

  ChangeLog:

  * tests/include/environ.h (rw_getenv): Added prototype of new function.
  * tests/src/environ.cpp (rw_getenv): Added definition of the new function.
  * (rw_putenv): Added workaround for the putenv() limitations on Windows.
  * tests/localization/22.locale.messages.cpp: Use rw_getenv() instead of getenv().
  * tests/localization/22.locale.moneypunct.cpp: Ditto.
  * tests/localization/22.locale.time.get.cpp: Ditto.
  * tests/src/alloc.cpp: Ditto.
  * tests/src/cmdopt.cpp: Ditto.
  * tests/src/locale.cpp: Ditto.
  * tests/src/new.cpp: Ditto.
  * tests/src/printf.cpp: Ditto.

 

> [MSVC] rw_putenv() limitations
> ------------------------------
>
>                 Key: STDCXX-646
>                 URL: https://issues.apache.org/jira/browse/STDCXX-646
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Test Driver
>    Affects Versions: 4.2.0
>         Environment: MSVC, ICC/Windows
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-646.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.