summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-31 11:39:03 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-31 11:39:03 (GMT)
commit27181ac778fdb8432d79f280922eac0f70af5194 (patch)
tree1b0eace235d0f562c000fefd848f1bd125c4dc9a /Python/sysmodule.c
parent7899acfc23c6262cea8f69bda36cf256cdfc3501 (diff)
downloadcpython-27181ac778fdb8432d79f280922eac0f70af5194.zip
cpython-27181ac778fdb8432d79f280922eac0f70af5194.tar.gz
cpython-27181ac778fdb8432d79f280922eac0f70af5194.tar.bz2
sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not
called yet: detect bootstrap (startup) issues earlier.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 8d44135..5664646 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -259,8 +259,9 @@ sys_getfilesystemencoding(PyObject *self)
{
if (Py_FileSystemDefaultEncoding)
return PyUnicode_FromString(Py_FileSystemDefaultEncoding);
- Py_INCREF(Py_None);
- return Py_None;
+ PyErr_SetString(PyExc_RuntimeError,
+ "filesystem encoding is not initialized");
+ return NULL;
}
PyDoc_STRVAR(getfilesystemencoding_doc,
-16/+266 * address test failing when default real and integers are 8 bytes (#2173)Scot Breitenfeld2022-10-191-6/+17 * Subfiling Fortran wrapper work. (#2143)Scot Breitenfeld2022-10-067-23/+454 * Update CMake code to 3.18 minimum version (#2080)Allen Byrne2022-09-031-1/+1 * changes parallel tests to .F90 ext. and fixes the CALL check strings (#1725)Scot Breitenfeld2022-05-045-19/+18 * Update license url part2 (#333)Larry Knox2021-02-175-5/+5 * Trim trailing whitespaceQuincey Koziol2020-04-202-4/+4 * Flag construction must be after compiler detectionAllen Byrne2020-04-051-7/+5 * TRILAB-192 add c++ and fortran warnings build systems one fileAllen Byrne2020-04-051-4/+2 * TRILAB-142 Change minimum CMake version to 3.12Allen Byrne2020-02-211-1/+1 * HDFFV-11011 - merge include listAllen Byrne2020-01-291-2/+1 * HDFFV-11011 correct issues with target file extensionAllen Byrne2020-01-281-12/+31 * HDFFV-11001 Add fine control over testingAllen Byrne2020-01-151-1/+3 * Reverts the removal of config/conclude_fc.am while keepingDana Robinson2019-08-011-1/+1 * Parallel Fortran tests now use the MPI module instead of includingDana Robinson2019-07-193-3/+5 * Updated gfortran options.Dana Robinson2019-07-171-1/+1 * Refactor mpi test namesAllen Byrne2019-02-111-1/+1 * Rename parallel tests to start with PAR_Allen Byrne2019-02-111-1/+1 * Add missing module_dir propertyAllen Byrne2018-05-091-0/+1 * Correct command usageAllen Byrne2018-05-071-1/+1 * Remove APPENDAllen Byrne2018-05-031-1/+1 * Revert to old style for LINK_FLAGS gen expr not workingAllen Byrne2018-05-031-6/+9 * LINK_FLAGS must be separate property setsAllen Byrne2018-05-031-3/+6 * Fix link flags syntaxAllen Byrne2018-05-031-3/+3 * Revert refactor link flagsAllen Byrne2018-05-021-3/+3 * refactor link flags to interfaceAllen Byrne2018-05-021-3/+3 * TRILABS-19 Link flags need - characterAllen Byrne2018-05-021-1/+1 * TRILABS-19 Refactor fortran propertiesAllen Byrne2018-04-301-10/+18 * TRILABS-19 remove add_defintions and use generator expressionsAllen Byrne2018-04-261-1/+1 * TRILABS-20 set a compiler name on all project commandsAllen Byrne2018-04-201-1/+1 * Change CMake min to 3.10Allen Byrne2018-03-091-1/+1 * Inc CMake min, Add new tests, rework test CMake filesAllen Byrne2018-02-271-1/+1 * HDFFV-10385 rework java namesAllen Byrne2018-01-171-1/+0 * Correct usage of MPI varsAllen Byrne2017-11-012-3/+3 * Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5...Larry Knox2017-04-25frq_3599786 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Expand)AuthorAgeFilesLines
* Start RC branch for Tcl 8.6.6dgp2016-07-121-1/+1
* Fixup the ensemble rewrite conversions (merge fork)jan.nijtmans2016-07-051-1/+1
* [09fabeb1fd] test subdirs in sorted order.dgp2016-07-021-1/+1
* (cherry-pick) Merge TIP #447: Execution Time Verbosity Levels in tcltest::con...jan.nijtmans2016-06-022-6/+32
* Make tclreg13.dll work in any Unicode environment (either with 32-bit or 64-b...jan.nijtmans2016-05-131-2/+2
* Update to tzdata2016d from IETFvenkat2016-04-2234-313/+463
|\
| * Update to tzdata2016d from IETFvenkat2016-04-2234-313/+463
* | Update to tzdata 2016c from ietf.orgdkf2016-03-26