Branch: refs/heads/smoke-me/khw-locale4
Home: https://github.com/Perl/perl5
Commit: b59baa305c866e17b153044171a14d05a6b9bbb7
https://github.com/Perl/perl5/commit/b59baa305c866e17b153044171a14d05a6b9bbb7
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
loc_tools: Create function, refactor
category_excluded() is a better name for what the current name
'is_category_valid" does. And it turns out that we need to use this
function on (those few) systems that don't have LC_CTYPE to avoid
executing code that depends on LC_CTYPE.
And we do need an improved is_category_valid() for other checks.
Commit: 94342c09bc8a13e55ca0ac2f82d181bfe101526a
https://github.com/Perl/perl5/commit/94342c09bc8a13e55ca0ac2f82d181bfe101526a
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
loc_tools.pl: Move code in file
This is for future commits to call after it is defined
Commit: 307a037f89d837d40ff33dd94917481a6d7021c6
https://github.com/Perl/perl5/commit/307a037f89d837d40ff33dd94917481a6d7021c6
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Print better failing test numbers
This test module is 'required' from other perl test files. If it
encounters an error, it doesn't know how to report it. What it does is
call fail() if available, and a home-grown one otherwise. Prior to this
commit the home-grown version just made all tests number 0. This commit
changes that to make them sequentially numbered from a very high
starting one, so as not to interfere with the outer calls.
Commit: 31bfa140e95a4917ac8c1562da7b47d97749d599
https://github.com/Perl/perl5/commit/31bfa140e95a4917ac8c1562da7b47d97749d599
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Refactor _trylocale()
This function is used to see if a locale actually works on the current
platform. I was not fully aware of the glitches if a category is in one
locale, and LC_CTYPE is in another. This makes sure they are both the
same; and this results in some simplification.
Commit: fc975970f38fff8b4578978a08515fe40d29533b
https://github.com/Perl/perl5/commit/fc975970f38fff8b4578978a08515fe40d29533b
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Fail earlier
Move the code that returns failure into the loop, so won't keep
iterating if failure is going to happen anyway.
Commit: 54a0e37a4041163b87ea86334e637d713e826c9d
https://github.com/Perl/perl5/commit/54a0e37a4041163b87ea86334e637d713e826c9d
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Add checks
This verifies that we can restore a locale that we were previously in,
and makes sure that we don't stay in a locale that doesn't work well.
Doing so has led to crashes.
Commit: 36489ca8235805675864dbaef1f4c470106b4577
https://github.com/Perl/perl5/commit/36489ca8235805675864dbaef1f4c470106b4577
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Don't allow commas in locale names
This was a problem in some buggy Windows versions. This addition keeps
locales with this bug from being tested.
Commit: 4201e77ac2ed0f97eabef1b2c80b11cdec17d4c0
https://github.com/Perl/perl5/commit/4201e77ac2ed0f97eabef1b2c80b11cdec17d4c0
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Check for unsupported locales
This commit causes us not to view unsupported locales as legitimate for
testing. Core dumps occurred on some platforms without this.
It looks for a diagnostic that the next commit in this series will
generate.
Commit: e3584473310db81dbec8ef16618335d042036a1e
https://github.com/Perl/perl5/commit/e3584473310db81dbec8ef16618335d042036a1e
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: White-space only
Commit: 8ff394686973620ddd42815c70ab7e38d6ae8bb2
https://github.com/Perl/perl5/commit/8ff394686973620ddd42815c70ab7e38d6ae8bb2
Author: Karl Williamson
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M t/loc_tools.pl
Log Message:
---
t/loc_tools.pl: Turn off warnings in a timely manner
It doesn't matter much, but some warnings might be output by doing the
'use locale' before turning off warnings.