( )⚙ D10998 windows: replicate the normalizing behavior of os.environ

This is an archive of the discontinued Mercurial Phabricator instance.

windows: replicate the normalizing behavior of os.environ
ClosedPublic

Authored by Alphare on Jul 7 2021, 9:14 AM.

Details

Summary

On Windows, os.environ normalizes environment variables to uppercase. Our
current bytes-based environ substitution object is a simple dict, so we add
the normalization behavior.

This fixes test-http-peer.t on Windows.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Alphare created this revision.Jul 7 2021, 9:14 AM

This diff is mostly unreadable as a large portion is considered moved…

Alphare edited the summary of this revision. (Show Details)
Alphare updated this revision to Diff 28999.
marmoute accepted this revision.Jul 8 2021, 10:36 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.