cpython/Modules
Miss Islington (bot) 6a433f5ae6
bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)
Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[].

This causes time.tzname to be an empty string.
I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production.

In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7

@zooba

https://bugs.python.org/issue36779
(cherry picked from commit b4c7defe58)

Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
2019-06-13 06:42:46 -07:00
..
_blake2 [3.7] Fix misleading mentions of tp_size in comments. (GH-9136) 2018-09-10 10:22:55 -07:00
_ctypes bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881) (#13882) 2019-06-07 10:34:14 +02:00
_decimal bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128) 2018-10-26 10:28:26 -07:00
_io Fix the error handling in bytesio_sizeof(). (GH-10459) 2019-06-01 14:58:33 -07:00
_multiprocessing [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
_sha3 closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411) 2019-01-02 11:58:58 -08:00
_sqlite [3.7] bpo-9566: Fix compiler warnings on Windows (GH-12920) 2019-04-23 10:26:11 +02:00
_xxtestfuzz bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991) 2019-06-11 21:47:42 -07:00
cjkcodecs bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) 2018-12-17 07:10:20 -08:00
clinic [3.7] Remove stray quote in os.replace docstring. (GH-11835) 2019-02-12 20:36:09 -08:00
expat bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079) 2018-12-10 07:25:31 -08:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
Setup.dist closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpat line in Setup. (GH-13064) 2019-06-10 19:15:24 -07:00
_abc.c fix _abc.c compile error on Cygwin (GH-8445) 2019-02-23 17:53:28 -08:00
_asynciomodule.c bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) 2018-12-17 07:10:20 -08:00
_bisectmodule.c Issue #28792: Remove aliases from _bisect 2016-11-24 23:31:59 +01:00
_bz2module.c bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174) 2018-10-28 13:46:56 -07:00
_codecsmodule.c bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) 2017-03-12 10:10:47 +02:00
_collectionsmodule.c bpo-33012: Fix signatures of METH_NOARGS functions. (GH-10736) (GH-10748) 2018-11-27 20:27:47 +02:00
_contextvarsmodule.c bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473) 2018-09-21 12:48:10 -07:00
_cryptmodule.c bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373) (GH-11376) 2018-12-30 17:59:52 -08:00
_csv.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
_curses_panel.c Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever 2017-01-23 09:47:21 +02:00
_cursesmodule.c bpo-33012: Fix signatures of METH_NOARGS functions. (GH-10736) (GH-10748) 2018-11-27 20:27:47 +02:00
_datetimemodule.c bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692) 2019-01-14 02:41:33 -08:00
_dbmmodule.c [3.7] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630) (GH-6631) 2018-04-29 14:50:26 +03:00
_elementtree.c bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 00:33:10 -07:00
_functoolsmodule.c bpo-36650: Fix handling of empty keyword args in C version of lru_cache. (GH-12881) (GH-12888) 2019-04-20 07:50:32 -10:00
_gdbmmodule.c bpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832) 2018-02-26 06:25:40 -08:00
_hashopenssl.c bpo-36209: Fix typo on hashlib error message (GH-12194) 2019-03-06 06:54:54 -08:00
_heapqmodule.c Issue #15984: Merge PyUnicode doc from 3.5 2016-04-15 02:27:11 +00:00
_json.c bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225) 2018-09-13 00:46:40 +03:00
_localemodule.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
_lsprof.c Fix docstring of Profiler class (GH-8651) 2018-08-03 02:30:49 -07:00
_lzmamodule.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
_math.c Issue #28256: Cleanup _math.c 2016-10-18 16:29:27 +02:00
_math.h Issue #28256: Cleanup _math.c 2016-10-18 16:29:27 +02:00
_opcode.c Issue #27332: Fixed the type of the first argument of module-level functions 2016-07-07 17:35:15 +03:00
_operator.c bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689) 2018-11-23 11:58:08 -08:00
_pickle.c bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859) 2019-06-12 04:50:11 -07:00
_posixsubprocess.c bpo-35550: Fix incorrect Solaris define guards (GH-11275) 2018-12-30 18:39:00 -08:00
_queuemodule.c [3.7] Fix misleading mentions of tp_size in comments. (GH-9136) 2018-09-10 10:22:55 -07:00
_randommodule.c closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849) 2019-02-14 00:02:12 -08:00
_scproxy.c closes bpo-31903: Release the GIL when calling into SystemConfiguration (GH-4178) 2018-09-12 08:37:30 -07:00
_sre.c bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252) 2019-03-10 03:52:44 -07:00
_ssl.c bpo-35926: Add support for OpenSSL 1.1.1b on Windows (GH-11779) 2019-05-16 09:41:36 -07:00
_ssl_data.h Issue #23248: Update ssl error codes from latest OpenSSL git master. 2015-01-18 17:39:32 +01:00
_stat.c
_struct.c bpo-32240: Add the const qualifier to declarations of PyObject* array arguments. (#4746) 2017-12-15 13:11:11 +02:00
_testbuffer.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
_testcapimodule.c [3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13896) 2019-06-07 17:41:10 +02:00
_testimportmultiple.c
_testmultiphase.c Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147) 2018-07-06 21:25:22 -07:00
_threadmodule.c bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077) 2018-12-10 23:05:13 -08:00
_tkinter.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
_tracemalloc.c bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) (GH-10517) 2018-11-13 15:50:56 +01:00
_uuidmodule.c bpo-32493: Fix uuid.uuid1() on FreeBSD. (GH-7099) 2018-05-24 16:22:59 -07:00
_weakref.c bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
_winapi.c [3.7] bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150). (GH-11151) 2018-12-14 11:56:48 +02:00
addrinfo.h replace PY_LONG_LONG with long long 2016-09-06 10:46:49 -07:00
arraymodule.c bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 00:33:10 -07:00
atexitmodule.c bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611) 2017-12-20 11:17:58 +01:00
audioop.c bpo-33781: audioop: enhance rounding double as int (GH-7447) 2018-06-06 07:33:05 -07:00
binascii.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
cmathmodule.c bpo-36908: 'This module is always available' isn't helpful. (GH-13297) 2019-05-17 14:08:21 -07:00
config.c.in rename _imp initialization function to follow conventions (#5432) 2018-01-29 11:33:57 -08:00
errnomodule.c
faulthandler.c bpo-36856: Handle possible overflow in faulthandler_stack_overflow (GH-13205) 2019-05-27 17:14:21 -07:00
fcntlmodule.c [3.7] bpo-35189: Retry fnctl calls on EINTR (GH-10413) (GH-10678) 2018-11-23 17:53:14 +01:00
gc_weakref.txt
gcmodule.c bpo-33622: Fix issues with handling errors in the GC. (GH-7078) 2018-05-24 05:39:08 -07:00
getaddrinfo.c bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748) 2017-12-12 13:55:04 +02:00
getbuildinfo.c bpo-27593: Get SCM build info from git instead of hg. (#446) 2017-03-04 00:19:55 -05:00
getnameinfo.c
getpath.c bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348) 2019-02-27 18:24:34 +09:00
grpmodule.c bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165). (GH-10947) 2018-12-05 23:23:06 +02:00
hashlib.h bpo-31370: Remove support for threads-less builds (#3385) 2017-09-07 18:56:24 +02:00
hashtable.c Replace KB unit with KiB (#4293) 2017-11-08 14:44:44 -08:00
hashtable.h Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy(). 2016-09-13 20:22:02 +02:00
itertoolsmodule.c bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551) 2019-03-25 23:26:42 -07:00
ld_so_aix.in Issue #10656: Fix out-of-tree building on AIX 2016-11-20 07:56:37 +00:00
main.c bpo-36965: Fix includes in main.c on Windows with non-MSC compilers (GH-13421) (GH-13471) 2019-05-22 13:04:06 +02:00
makesetup closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. (GH-8712) 2018-11-26 18:32:57 -08:00
makexp_aix
mathmodule.c bpo-36908: 'This module is always available' isn't helpful. (GH-13297) 2019-05-17 14:08:21 -07:00
md5module.c bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) (GH-9971) 2018-10-20 01:20:56 +02:00
mmapmodule.c bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 00:33:10 -07:00
nismodule.c bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808) 2018-11-30 00:00:07 -08:00
ossaudiodev.c [3.7] Fix misleading mentions of tp_size in comments. (GH-9136) 2018-09-10 10:22:55 -07:00
overlapped.c bpo-32710: Fix _overlapped.Overlapped memory leaks (GH-11489) 2019-01-11 06:01:50 -08:00
parsermodule.c [3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs (GH-12565) (GH-12671) 2019-04-03 14:34:59 -04:00
posixmodule.c bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071) 2019-06-13 00:18:26 -07:00
posixmodule.h
pwdmodule.c bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165). (GH-10947) 2018-12-05 23:23:06 +02:00
pyexpat.c Fix several reference counting bugs in pyexpat.c. (GH-9955) 2018-10-19 00:16:25 -07:00
readline.c Fix compiler warning in call_readline() (GH-10820) (GH-12452) 2019-03-20 01:00:41 +01:00
resource.c bpo-20185: Convert the resource moduel to Argument Clinic. (#545) 2017-03-12 13:08:30 +02:00
rotatingtree.c
rotatingtree.h bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
selectmodule.c bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033) 2018-12-08 06:34:49 -08:00
sha1module.c bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) (GH-9971) 2018-10-20 01:20:56 +02:00
sha256module.c bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) (GH-9971) 2018-10-20 01:20:56 +02:00
sha512module.c bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) (GH-9971) 2018-10-20 01:20:56 +02:00
signalmodule.c bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778) 2019-05-24 02:22:38 -07:00
socketmodule.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
socketmodule.h closes bpo-34555: Fix incorrectly nested test for HAVE_LINUX_VM_SOCKETS_H (GH-9016) 2018-09-01 18:30:44 -04:00
spwdmodule.c [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) 2017-06-28 08:30:06 +03:00
sre.h bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns. (#4471) 2017-12-04 14:29:05 +02:00
sre_constants.h bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group flags for RE. (#3885) 2017-10-24 23:31:42 +03:00
sre_lib.h bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546) 2019-02-18 05:48:23 -08:00
symtablemodule.c Issue #20186: Converted the symtable module to Argument Clinic. 2017-02-04 12:13:20 +02:00
syslogmodule.c Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever 2017-01-23 09:47:21 +02:00
termios.c Fix a possible "double decref" in termios.tcgetattr(). (GH-10194) 2018-10-28 22:17:45 -07:00
testcapi_long.h
timemodule.c bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073) 2019-06-13 06:42:46 -07:00
tkappinit.c Issue #4350: Removed a number of out-of-dated and non-working for a long time 2014-07-23 22:33:50 +03:00
tkinter.h Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than 8.5.8 2015-04-22 10:59:32 +03:00
unicodedata.c bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) 2018-06-15 05:21:55 -07:00
unicodedata_db.h update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470) 2018-06-07 03:36:22 -04:00
unicodename_db.h update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470) 2018-06-07 03:36:22 -04:00
winreparse.h Issue #17599: Use unique _Py_REPARSE_DATA_BUFFER etc names to avoid conflict 2016-08-04 02:38:59 +00:00
xxlimited.c bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111) 2018-05-26 01:33:23 -07:00
xxmodule.c bpo-31443: Formulate the type slot initialization rules in terms of C99. (#3688) 2017-09-22 17:44:58 +02:00
xxsubtype.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
zipimport.c bpo-32248 - Implement `ResourceReader` and `get_resource_reader()` for zipimport (#5248) 2018-01-24 15:36:21 -05:00
zlibmodule.c bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174) 2018-10-28 13:46:56 -07:00

README

Source files for standard library extension modules,
and former extension modules that are now builtin modules.