Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d7126481
Commit
d7126481
authored
Aug 19, 2010
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PYTHONFSENCODING is not available on Windows or Mac OS X
parent
ed78bc8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
Doc/using/cmdline.rst
Doc/using/cmdline.rst
+4
-0
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.2.rst
+3
-1
Modules/main.c
Modules/main.c
+9
-7
No files found.
Doc/using/cmdline.rst
View file @
d7126481
...
...
@@ -447,6 +447,10 @@ These environment variables influence Python's behavior.
If this is set before running the interpreter, it overrides the encoding used
for the filesystem encoding (see :func:`sys.getfilesystemencoding`).
This variable is not available (ignored) on Windows and Mac OS X: the
filesystem encoding is pinned to ``'mbcs'`` on Windows and ``'utf-8'`` on
Mac OS X.
.. versionadded:: 3.2
...
...
Doc/whatsnew/3.2.rst
View file @
d7126481
...
...
@@ -242,7 +242,9 @@ Filenames and unicode
The filesystem encoding can be specified by setting the
:envvar:`PYTHONFSENCODING` environment variable before running the interpreter.
The value should be a string in the form ``<encoding>``, e.g. ``utf-8``.
The value is an encoding name, e.g. ``iso-8859-1``. This variable is not
available (ignored) on Windows and Mac OS X: the filesystem encoding is pinned
to ``'mbcs'`` on Windows and ``'utf-8'`` on Mac OS X.
The :mod:`os` module has two new functions: :func:`os.fsencode` and
:func:`os.fsdecode`.
...
...
Modules/main.c
View file @
d7126481
...
...
@@ -94,13 +94,15 @@ PYTHONSTARTUP: file executed on interactive startup (no default)\n\
PYTHONPATH : '%c'-separated list of directories prefixed to the
\n
\
default module search path. The result is sys.path.
\n
\
"
;
static
char
*
usage_5
=
"\
PYTHONHOME : alternate <prefix> directory (or <prefix>%c<exec_prefix>).
\n
\
The default module search path uses %s.
\n
\
PYTHONCASEOK : ignore case in 'import' statements (Windows).
\n
\
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr.
\n
\
PYTHONFSENCODING: Encoding used for the filesystem.
\n
\
"
;
static
char
*
usage_5
=
"PYTHONHOME : alternate <prefix> directory (or <prefix>%c<exec_prefix>).
\n
"
" The default module search path uses %s.
\n
"
"PYTHONCASEOK : ignore case in 'import' statements (Windows).
\n
"
"PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr.
\n
"
#if !(defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)) && !defined(__APPLE__)
"PYTHONFSENCODING: Encoding used for the filesystem.
\n
"
#endif
;
FILE
*
_Py_wfopen
(
const
wchar_t
*
path
,
const
wchar_t
*
mode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment