Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 544171f79ec3e50bb5003007e9f4ebb9a7e9fe84 https://github.com/Perl/perl5/commit/544171f79ec3e50bb5003007e9f4ebb9a7e9fe84 Author: Karl Williamson <k...@cpan.org> Date: 2022-08-10 (Wed, 10 Aug 2022)
Changed paths: Log Message: ----------- Add missing merge message for 5a04f3b4c9..58236863a5 This series of commits was supposed to be added as a single merge commit of the entire series, with the message below, but it didn't work out. So this is an attempt to semi-rectify things by at least giving the message in the vicinity of the commits (this empty commit is three commits after the final one of the series): The message was "Merge branch from pull request #19945 into blead "This is the third set of commits (of eventually 250) dealing with locale handling. "This set fixes bugs involved in POSIX 2008 locale handling, and they make the code for it cleaner, fixing the bug reported in http://nntp.perl.org/group/perl.perl5.porters/264263 "There are fixes to rarely encountered initialization problems. "These also fix some bugs and failures to compile on various lesser-used Configurations, as well as improving the debugging and making the debugging statements less intrusive in the source code." Also here is the short log of those commits, in order: 5a04f3b4c9 sv.c: Move some initialization inside #ifdef sv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) fcbef0e88b intrpvar.h: Fix when certain locale symbols get defined intrpvar.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 7b5ca0e3b0 Temporarily skip on Windows ext/I18N-Langinfo/t/Langinfo.t | 2 ++ 1 file changed, 2 insertions(+) f3e902221c Make two locale PL_ strings const char* embed.fnc | 2 +- intrpvar.h | 2 +- locale.c | 25 ++++++++++++++++--------- proto.h | 2 +- 4 files changed, 19 insertions(+), 12 deletions(-) 82e2ef2746 Reorder some locale functions in embed.fnc embed.fnc | 45 +++++++++++++++++++++------------------------ embed.h | 14 +++++++------- proto.h | 22 +++++++++++----------- 3 files changed, 39 insertions(+), 42 deletions(-) 32899cfbfb locale.c: Generalize stdize_locale() embed.fnc | 6 +- embed.h | 2 +- embedvar.h | 2 + intrpvar.h | 2 + locale.c | 185 +++++++++++++++++++++++++++++++++++++++++++++++-------------- perl.c | 5 ++ proto.h | 5 +- sv.c | 3 + 8 files changed, 164 insertions(+), 46 deletions(-) 50ffb02bd2 locale.c: Refactor some derived #defines locale.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) a7ff7aca38 locale.c: Use setlocale() for init, not P2008 locale.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 57eeab0b3f setlocale_failure_panic_i now used more generally embed.fnc | 2 -- embed.h | 8 +------- locale.c | 14 ++++++-------- proto.h | 16 +++++----------- 4 files changed, 12 insertions(+), 28 deletions(-) f2780a3f41 locale.c: Split aggregate LC_ALL from emulate_setlocale embed.fnc | 2 + embed.h | 1 + locale.c | 241 ++++++++++++++++++++++++++++++++++---------------------------- proto.h | 3 + 4 files changed, 140 insertions(+), 107 deletions(-) 0998f1fdef locale.c: Avoid loop; panic on unexpected condition. locale.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 2ee51ed736 locale.c: Comments; move declarations to use point locale.c | 85 ++++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 37 deletions(-) 9ec822ee8e locale.c: Change internal variable name embed.fnc | 2 +- locale.c | 42 +++++++++++++++++++++--------------------- proto.h | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) 74a90e54e0 locale.c: Clean up handling of a glibc bug locale.c | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) 11d8dd19b4 locale.c: Split ancillary from S_emulate_setlocale embed.fnc | 6 ++- embed.h | 3 +- locale.c | 144 +++++++++++++++++++++++++++++++++++++++----------------------- proto.h | 5 ++- 4 files changed, 101 insertions(+), 57 deletions(-) c61e7ca793 locale.c: locale "" can be disparate locale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 9444acab0f Split off setting locale to "" from S_emulate_setlocale embed.fnc | 1 + embed.h | 1 + locale.c | 183 +++++++++++++++++++++++++++----------------------------------- proto.h | 2 + 4 files changed, 82 insertions(+), 105 deletions(-) c6efbad02a sv.c: Duplicate more variables during cloning sv.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 827a4a051a locale.c: Add fcn to hide edge case undefined behavior embed.fnc | 1 + embed.h | 1 + embedvar.h | 1 + intrpvar.h | 3 +++ locale.c | 50 ++++++++++++++++++++++++++++---------------------- makedef.pl | 8 +++++++- perl.c | 4 ++++ proto.h | 2 ++ sv.c | 3 +++ 9 files changed, 50 insertions(+), 23 deletions(-) 1a63cba7a2 locale.c: Add DEBUGGING information embed.fnc | 6 ++-- embed.h | 4 +-- locale.c | 114 +++++++++++++++++++++++++++++++++++--------------------------- proto.h | 4 +-- 4 files changed, 73 insertions(+), 55 deletions(-) 5ce9bebe11 Don't discard locale info in starting P2008 locale.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 20ad7b235a Add a common locale panic macro and functions embed.fnc | 5 ++ embed.h | 1 + locale.c | 166 ++++++++++++++++++++++++++++++++++---------------------------- perl.h | 5 +- proto.h | 9 ++++ 5 files changed, 109 insertions(+), 77 deletions(-) 0494a7e2c2 locale.c: Use DEBUG_(PRE|POST_)STMTS to save/restore errno locale.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) b26541a96c locale.c: Move DEBUG location info locale.c | 139 ++++++++++++++++++++++++++------------------------------------- 1 file changed, 58 insertions(+), 81 deletions(-) 6fad488018 locale.c: Change outlier call to use macro locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 0d17a9c874 locale.c: newlocale() can't handle disparate locales locale.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) 66a28734f9 locale.c: Mv declarations closer to use in function locale.c | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) 19e550d7fe locale.c: Don't waste time executing a no-op locale.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 947b444cf6 locale.c: panic if shouldn't-happen events do locale.c | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) 43c2ca2c44 locale.c: Make sure newlocale() doesn't destroy arg locale.c | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) c2c9cf1948 locale.c: Rmv unnecessary variable locale.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) bfcd7d5181 Swap the ordering of two locale category indices locale.c | 24 ++++++++++++------------ perl.h | 20 ++++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) b9cb1acb68 locale.c: Change assert() into STATIC_ASSERT() locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 3b30ed2b88 locale.c: Add check that strxfrm didn't fail locale.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 58236863a5 locale.c: Print code point in hex, not decimal locale.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)