1. Pypy
  2. Untitled project
  3. pypy


Amaury Forgeot d'Arc  committed d59c68a

posix.environ is a dict of bytes, os.environ decode these with the fsencoding.

  • Participants
  • Parent commits a0e19ad
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/posix/interp_posix.py

View file
  • Ignore whitespace
 def _convertenviron(space, w_env):
     space.call_method(w_env, 'clear')
     for key, value in os.environ.items():
-        space.setitem(w_env, space.wrap(key), space.wrap(value))
+        space.setitem(w_env, space.wrapbytes(key), space.wrapbytes(value))
 @unwrap_spec(name=str, value=str)
 def putenv(space, name, value):