[pypy-commit] pypy py3k: fix getcwd on windows. a good test for this is really pending surrogateescape

pjenvey noreply at buildbot.pypy.org
Wed Mar 14 21:46:25 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r53600:8e9bdbfb77b2
Date: 2012-03-14 13:45 -0700
http://bitbucket.org/pypy/pypy/changeset/8e9bdbfb77b2/

Log:	fix getcwd on windows. a good test for this is really pending
	surrogateescape (PEP 383) support

diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -422,7 +422,7 @@
     def getcwd(space):
         """Return the current working directory as a string."""
         try:
-            cur = os.getcwdb()
+            cur = os.getcwdu()
         except OSError, e:
             raise wrap_oserror(space, e)
         else:


More information about the pypy-commit mailing list