Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e57aaf750b3d2461053eff690d0954bc8fb9d7f3
      
https://github.com/Perl/perl5/commit/e57aaf750b3d2461053eff690d0954bc8fb9d7f3
  Author: Bram <[email protected]>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  Use struct for `trial_locales`

Change `trial_locales` from `const char` to a struct to be able to
refactor/clean up/tidy some code.

This is just a first step, the next commit will add some extra members
in the struct.


  Commit: 6e1b5a641dedd8f161e877fea30b0e2fedede27a
      
https://github.com/Perl/perl5/commit/6e1b5a641dedd8f161e877fea30b0e2fedede27a
  Author: Bram <[email protected]>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  Set fallback_(desc|name) when adding trial_locales

When adding an extra item to the `trial_locales` list then already
set the 'fallback description' and 'fallback name' to show in the
warning message.

This makes the code easier since now the later code doesn't need to
determine the message again.

This commit doesn't alter the output of the warning message
when the locale settings are incorrect.


  Commit: 4fe10b51f925e05674db7fdc338687d6b4b34f0c
      
https://github.com/Perl/perl5/commit/4fe10b51f925e05674db7fdc338687d6b4b34f0c
  Author: Bram <[email protected]>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  Cleanup 'use system default locale' on WIN32

The 'use system default locale' for WIN32 was messy...

During the 'determine fallback' process it would add the empty
string as 'trial_locale' to signal the code to try the system default on
windows.

This was handled by an extra if condition at the start of the loop
to special case this.

Clean all this up by determining the 'real' value for `trial_locale` and
add that in the list.

(Note: I did test this change on Win32 but the system default failback
       currently doesn't work as expected due to GH #20054. The failure is
       unrelated to this commit.)


Compare: https://github.com/Perl/perl5/compare/cf1717027b95...4fe10b51f925

Reply via email to