Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1ca92b53db85c94833f69d01aea3601ab2252337
      
https://github.com/Perl/perl5/commit/1ca92b53db85c94833f69d01aea3601ab2252337
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M ext/POSIX/lib/POSIX.pod
    M util.c

  Log Message:
  -----------
  perlapi,POSIX.pod: Note problematic behavior with strftime()

Mojibake currently can happen without taking care


  Commit: 7dda750e8a9686736d0aed7578ea6a8435aa4dd5
      
https://github.com/Perl/perl5/commit/7dda750e8a9686736d0aed7578ea6a8435aa4dd5
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M util.c

  Log Message:
  -----------
  Perl_my_strftime(): Reformat source

This converts to use 4 space indentation, removes pre-C99 workarounds,
moving declarations closer to first use as allowed by C99, and adds a
few comments.


  Commit: fd0a8e29f81d64db5859309bc8bf0cd8e4950692
      
https://github.com/Perl/perl5/commit/fd0a8e29f81d64db5859309bc8bf0cd8e4950692
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M util.c

  Log Message:
  -----------
  my_strftime: Test for trivial case before anything else

If the passed in format is the empty string, the result is going to also
be the empty string.  There is no need to do any other work.


  Commit: 1069f4473acac823266b3f29c7639e8b501cc028
      
https://github.com/Perl/perl5/commit/1069f4473acac823266b3f29c7639e8b501cc028
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M util.c

  Log Message:
  -----------
  Refactor my_strftime() into using a do ... while();

This function can be simplified by using a do/while form to eliminate
the second call to strftime().


  Commit: fdfa975e4ba4d1357e4f528b24e4ef24b001a6b3
      
https://github.com/Perl/perl5/commit/fdfa975e4ba4d1357e4f528b24e4ef24b001a6b3
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M locale.c
    M util.c

  Log Message:
  -----------
  Move my_strftime() from util.c to locale.c

Stress testing has shown that unless LC_TIME and LC_CTYPE are the same
locale, mojibake can result on some platforms.

locale.c already handles this for various other similar cases, and has
the infrastructure available to easily handle this one too.  util.c does
not.

The only code change is to a comment to reflect that things are now in a
different file.


  Commit: 2935c197ac4c1c48a02fd3c107ffdcdcda54b99a
      
https://github.com/Perl/perl5/commit/2935c197ac4c1c48a02fd3c107ffdcdcda54b99a
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M ext/POSIX/lib/POSIX.pod
    M locale.c

  Log Message:
  -----------
  Fix mojibake in POSIX::strftime()

Some platforms require LC_CTYPE and LC_TIME to be the same.  This
toggles LC_CTYPE if necessary.


Compare: https://github.com/Perl/perl5/compare/25a36e71fc49...2935c197ac4c

Reply via email to