develooper Front page | perl.perl5.changes | Postings from March 2023

[Perl/perl5] 58e450: locale.c: Don't assume a particularConfiguration

From:
Karl Williamson via perl5-changes
Date:
March 16, 2023 00:54
Subject:
[Perl/perl5] 58e450: locale.c: Don't assume a particularConfiguration
Message ID:
Perl/perl5/push/refs/heads/smoke-me/khw-env/df3e3a-14d601@github.com
  Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: 58e4507171ac21ef53dac27f58decaf958661761
      https://github.com/Perl/perl5/commit/58e4507171ac21ef53dac27f58decaf958661761
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-13 (Mon, 13 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Don't assume a particular Configuration

This commit adds a preprocessor directive to check if we are running on
a POSIX 2008 system, rather than just assume we are if the earlier
possibilities weren't the case.  And it causes a compile time error if
none pan out.


  Commit: 558b47af0853cbbe816fa166771200c04de433db
      https://github.com/Perl/perl5/commit/558b47af0853cbbe816fa166771200c04de433db
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-13 (Mon, 13 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Don't compile without LC_ALL under POSIX 2008

The code assumes that if you have POSIX 2008, you have LC_ALL.  This
adds a compile-time error check to prevent someone from finding that out
the harder way.


  Commit: ce381d7818faec1a86e835e389ef2fad9ccd765e
      https://github.com/Perl/perl5/commit/ce381d7818faec1a86e835e389ef2fad9ccd765e
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-13 (Mon, 13 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Move a parallel array adjacent to its mates

This is in preparation for making their parallelism more obvious


  Commit: 9315cfee8184fa991d434dd0863bd059534d69b5
      https://github.com/Perl/perl5/commit/9315cfee8184fa991d434dd0863bd059534d69b5
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M embed.fnc
    M locale.c
    M perl.h
    M proto.h

  Log Message:
  -----------
  locale.c: Rmv extraneous array elements

These were for when the return of a function isn't checked in a loop,
causing it to go off the end of the array.  But we can easily set up to
give a compile time warning when the function's return isn't used, and
then the placeholders at the end of the arrays can be removed.


  Commit: 98bd2a4d8ad5e8ee97b7c3115a3ad7a8bb3be3a4
      https://github.com/Perl/perl5/commit/98bd2a4d8ad5e8ee97b7c3115a3ad7a8bb3be3a4
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M locale.c
    M perl.h

  Log Message:
  -----------
  Rename SETLOCALE_LOCK to LOCALE_LOCK

This mutex isn't just about the setlocale function; it applies to all
locale related critical sections.


  Commit: 88f5cf7f9561b4fc736234ccc852a750806cb8bb
      https://github.com/Perl/perl5/commit/88f5cf7f9561b4fc736234ccc852a750806cb8bb
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M embed.fnc
    M embed.h
    M handy.h
    M inline.h
    M locale.c
    M mg.c
    M perl.c
    M proto.h
    M sv.c

  Log Message:
  -----------
  thread-safe emulation partial to minimize diffs


  Commit: 44c048026bffca10d6177f0c01fbf77b992711b9
      https://github.com/Perl/perl5/commit/44c048026bffca10d6177f0c01fbf77b992711b9
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M embed.fnc
    M embed.h
    M locale.c
    M proto.h

  Log Message:
  -----------
  XXX for diffs: wont compile: rmv setlocale_from_aggregate


  Commit: b9cad477040d40953b47e937b9ca243155435819
      https://github.com/Perl/perl5/commit/b9cad477040d40953b47e937b9ca243155435819
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  XXX temp until parse_LC_ALL is in embed.fnc


  Commit: a1cb698498baac80de89fc3b9ede7fe117c31151
      https://github.com/Perl/perl5/commit/a1cb698498baac80de89fc3b9ede7fe117c31151
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  XXX Fake postional notation


  Commit: b73e45991244011cab2072e9d066a5f75b8e04ba
      https://github.com/Perl/perl5/commit/b73e45991244011cab2072e9d066a5f75b8e04ba
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M cpan/version/t/07locale.t
    M embed.fnc
    M embed.h
    M embedvar.h
    M hints/freebsd.sh
    M hints/openbsd.sh
    M intrpvar.h
    M lib/locale_threads.t
    M locale.c
    M makedef.pl
    M perl.c
    M perl.h
    M pod/perldelta.pod
    M pod/perllocale.pod
    M pod/perlre.pod
    M pp_sys.c
    M proto.h
    M sv.c
    M t/harness
    M utf8.h
    M vutil.c

  Log Message:
  -----------
  l


  Commit: b87da816e419eb0e5e6ef9aad61b734ca3834182
      https://github.com/Perl/perl5/commit/b87da816e419eb0e5e6ef9aad61b734ca3834182
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M Configure

  Log Message:
  -----------
  Configure


  Commit: e5f06c5743eddf739f2e695debb7e9a36f94bb79
      https://github.com/Perl/perl5/commit/e5f06c5743eddf739f2e695debb7e9a36f94bb79
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  f l


  Commit: 89e6b28ca3f360e2c399a9eea0e36868d26153ca
      https://github.com/Perl/perl5/commit/89e6b28ca3f360e2c399a9eea0e36868d26153ca
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  debugs


  Commit: a421451a9631cf1e7a5faf66437c1156e8a454b7
      https://github.com/Perl/perl5/commit/a421451a9631cf1e7a5faf66437c1156e8a454b7
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M makedef.pl

  Log Message:
  -----------
  makedef.pl: Don't use locale items unless using locale

If we are configured to not look at locales at all, we shouldn't be
looking at threaded locales nor POSIX 2008 ones.

This commit fixes a situation that is not likely at all to show up in
real life, but I stumbeled across it in testing weird configurations.


  Commit: f854d68f20cf0e1da0a6767e247b67b442e29476
      https://github.com/Perl/perl5/commit/f854d68f20cf0e1da0a6767e247b67b442e29476
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M makedef.pl

  Log Message:
  -----------
  makedef.pl: Remove redundant set

This ||= is useless, as just above we've already set MULTIPLICITY if
USE_ITHREADS is set.


  Commit: d296136c0d1207b0b19245572624a8e0f7bfd821
      https://github.com/Perl/perl5/commit/d296136c0d1207b0b19245572624a8e0f7bfd821
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M lib/locale.t

  Log Message:
  -----------
  XXX temp: lib/locale.t: debug


  Commit: 2f1f0984358b0c1b020c42101efd8c2a0291b431
      https://github.com/Perl/perl5/commit/2f1f0984358b0c1b020c42101efd8c2a0291b431
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M lib/locale.t

  Log Message:
  -----------
  lib/locale.t FILE debug


  Commit: e7387274c55975f03f1937ec15a7dd0cbc9062bd
      https://github.com/Perl/perl5/commit/e7387274c55975f03f1937ec15a7dd0cbc9062bd
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M lib/locale.t

  Log Message:
  -----------
  lib/locale.t


  Commit: 9422fa2cdeff7e0444d14fc03e52ad10528e4ce9
      https://github.com/Perl/perl5/commit/9422fa2cdeff7e0444d14fc03e52ad10528e4ce9
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M pod/perlhacktips.pod

  Log Message:
  -----------
  XXX incomplete perlhacktips:


  Commit: 2567b15e626b924dcb6c834c571d365ddffa3861
      https://github.com/Perl/perl5/commit/2567b15e626b924dcb6c834c571d365ddffa3861
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M handy.h

  Log Message:
  -----------
  XXX cygwin debugging small macro buf


  Commit: 5753c3a194e55c10441883b9d62d04cfebbf73b7
      https://github.com/Perl/perl5/commit/5753c3a194e55c10441883b9d62d04cfebbf73b7
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M iperlsys.h

  Log Message:
  -----------
  iperlsys.h: TODO need to look at adding mutexes


  Commit: 07c530ad1b368f401cc164512b0a713e7a6db1c3
      https://github.com/Perl/perl5/commit/07c530ad1b368f401cc164512b0a713e7a6db1c3
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M regen/reentr.pl

  Log Message:
  -----------
  reentr.pl: XXX about needing mutex


  Commit: b49dbd947b9e174327f73bf092b9c8a03469f1a8
      https://github.com/Perl/perl5/commit/b49dbd947b9e174327f73bf092b9c8a03469f1a8
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M regexec.c

  Log Message:
  -----------
  regexec.c: XXX has cast to U8 for some reason


  Commit: d49464d4f6943965e787258eb7f2f08e66b6e789
      https://github.com/Perl/perl5/commit/d49464d4f6943965e787258eb7f2f08e66b6e789
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M sv.c

  Log Message:
  -----------
  perlapi: Combine sv_eq(), sv_eq_flags() entries


  Commit: 25d0156c5dad009fa2e4de4d9a3e45e65731de31
      https://github.com/Perl/perl5/commit/25d0156c5dad009fa2e4de4d9a3e45e65731de31
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M dist/ExtUtils-ParseXS/lib/perlxs.pod
    M t/porting/known_pod_issues.dat

  Log Message:
  -----------
  perlxs


  Commit: ad6978f08daeacc9f7ec9d48ad6403e9f1109741
      https://github.com/Perl/perl5/commit/ad6978f08daeacc9f7ec9d48ad6403e9f1109741
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M dist/IO/IO.xs

  Log Message:
  -----------
  XXX check if using ppport IO.xs: Remove fallback code furnished by ppport


  Commit: 7b11c6d84d7b19418d05daa98945214c5a3cbe11
      https://github.com/Perl/perl5/commit/7b11c6d84d7b19418d05daa98945214c5a3cbe11
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M pp.c

  Log Message:
  -----------
  Debug Windows memory usage in pp_study


  Commit: ff3ba5bf841c632db6e2cb48da5c431dcfb7cdee
      https://github.com/Perl/perl5/commit/ff3ba5bf841c632db6e2cb48da5c431dcfb7cdee
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M pod/perlmod.pod

  Log Message:
  -----------
  perlmod


  Commit: 14d6016c21c6d2947d31757b47d2202af6eaf27d
      https://github.com/Perl/perl5/commit/14d6016c21c6d2947d31757b47d2202af6eaf27d
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  XXX perl.h: Debugging mutex lock'


Compare: https://github.com/Perl/perl5/compare/df3e3a90d262...14d6016c21c6



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About