Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 3dd0f012b8ee115b0a649421977e2548196a477a
      
https://github.com/Perl/perl5/commit/3dd0f012b8ee115b0a649421977e2548196a477a
  Author: Karl Williamson <k...@cpan.org>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Move code to a separate function

Preprocessor directives will likely cause this code to be skipped and
not compiled on modern libc's.  It is a fallback to when there is no
mbtowc() nor mbrtowc() available on the platform, both C99 functions.

But, we've had too many examples of buggy libc functions, varying by
platform, and so this is being kept for the time being so that perl will
still work on a platform where these two functions are found to be
buggy, and Configure is overridden to forbid their use.

Moving the code to a separate function isolates it from the mainline
code, making that more understandable, and makes it easier to remove
this code if we decide to.

Using the -b or -w options to diff will make the deltas in this commit
more understandable, as the code was outdented in the new function.


Reply via email to