macos(x) PR_GetEnv should (runtime) use getenv/putenv if they work and _MD_GetEnv/_MD_PutEnv otherwise

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
17 years ago
14 years ago

People

(Reporter: timeless, Assigned: wtc)

Tracking

PowerPC
macOS

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
bug 120866 comment 70 and bug 120866 comment 71 indicate that of course the 
GetEnv doesn't get the environment in MacOS Carbon builds running under MacOSX.

Either getenv and setenv always work for MacOS8.1+ or they work at least under 
macosx.  If the latter, then at nspr init, we can do:

if (work){
  _MD_GET_ENV = getenv;
  _MD_SET_ENV = setenv;
} else {
  _MD_GET_ENV = _MD_GetEnv;
  _MD_SET_ENV = _MD_SetEnv;
}

getenv and setenv exist in 
MPW-GM\Interfaces&Libraries\Interfaces\CIncludes\stdlib.h

http://developer.apple.com/technotes/tn/tn1176.html#stdclib
(Reporter)

Updated

17 years ago
Blocks: 120866
(Assignee)

Comment 1

14 years ago
Marked the bug WONTFIX.  We don't do MacOS Carbon builds
any more.
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WONTFIX
Target Milestone: --- → 4.6
You need to log in before you can comment on or make changes to this bug.