Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: c3c6153b29f87d85d7af3380a3394ef78d3a2e3e https://github.com/Perl/perl5/commit/c3c6153b29f87d85d7af3380a3394ef78d3a2e3e Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023)
Changed paths: M Configure M win32/config.gc M win32/config.vc M win32/config_H.gc M win32/config_H.vc Log Message: ----------- Fix up regenerated Configure This commit fixes some bugs introduced in c4db344da5d363eb1cbbcc5aefa32aed0c409f6e via rebasing issues. Commit: 9d1747bc8112b0841507c31d94a8a99fd2c8e3fb https://github.com/Perl/perl5/commit/9d1747bc8112b0841507c31d94a8a99fd2c8e3fb Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M locale.c Log Message: ----------- Add development aid for simulating LC_ALL fake positional notation There are two ways that systems represent LC_ALL when not all individual categories are in the same locale. One is category_name=value pairs, and the other is a positional notation cat1_value|cat2_value|cat3_value|... where the separator (here '|') varies between platforms, and the position of a value determines which category it applies to. This commit adds the ability to simulate a positional box on a name=value box, so that many bugs can be found without having to access a real positional box. Commit: 23969d37a983f14087f89380d843215aa10f10de https://github.com/Perl/perl5/commit/23969d37a983f14087f89380d843215aa10f10de Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M locale.c M perl.h Log Message: ----------- locale.c: Add support for LC_ALL positional notation Some platforms use a positional notatiol for LC_ALL when not all categories are the same, like C/English/C.UTF-8/ ... This commit takes advantage of the new Configure probe to now handle those when parsing an LC_ALL string. Commit: 5e49a5b63ebcb2f7689e1b625f84bc5dabdc9393 https://github.com/Perl/perl5/commit/5e49a5b63ebcb2f7689e1b625f84bc5dabdc9393 Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M locale.c M perl.h Log Message: ----------- locale.c, perl.h: comments, white space Commit: f00e2c236f6bfc3c3331cf144d0a1e54a528a223 https://github.com/Perl/perl5/commit/f00e2c236f6bfc3c3331cf144d0a1e54a528a223 Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M locale.c Log Message: ----------- S_calculate_LC_ALL_string(): save value after calculation On some platforms the string returned by this function also needs to be kept up-to-date in an array element. This commit changes the function to do the update (after the potentially expensive calculation) as a side-effect, so as to avoid unnecessary recalculations. Commit: 9ebb2bb249bcbb0f88ee47f443fa094aaffd9dc1 https://github.com/Perl/perl5/commit/9ebb2bb249bcbb0f88ee47f443fa094aaffd9dc1 Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M locale.c Log Message: ----------- locale.c: Move some runtime calculations to compile time This commit creates the sum of the lengths of all the ';' and '=' characters in the string representing LC_ALL when not all categories are the same on platforms where the representation is 'name1=value1;name2=value2;...'. That number is constant for such strings; what varies are the names and their values. It is trivial to calculate this constant number, and saves runtime addition ops. More importantly, it makes future code that will accommodate the positional LC_ALL notation to have more in common with this code, resulting in fewer #ifdefs Commit: 988de4070e893d2260d86b46cfd117a602414c46 https://github.com/Perl/perl5/commit/988de4070e893d2260d86b46cfd117a602414c46 Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M embed.fnc M embed.h M locale.c M proto.h Log Message: ----------- S_querylocale_2008_i: Add caller's line# param This will be helpful in debugging Commit: 9b4482c8527453ef4973adb2eec2955a9a0f792d https://github.com/Perl/perl5/commit/9b4482c8527453ef4973adb2eec2955a9a0f792d Author: Karl Williamson <k...@cpan.org> Date: 2023-08-07 (Mon, 07 Aug 2023) Changed paths: M embed.fnc M embed.h M locale.c M perl.h M proto.h Log Message: ----------- locale.c: Calculate native LC_ALL strings There are two methods of representing non-uniform LC_ALL strings. One is name=value pairs, and the other is positional. Now that there is a Configure probe that detects the details, calculate_LC_ALL_string() is here enhanced to have a parameter passed to it as to which variety the output should be in, and to generate the proper format. Compare: https://github.com/Perl/perl5/compare/52df23cc1991...9b4482c85274