Branch: refs/heads/smoke-me/khw-env
  Home:   https://github.com/Perl/perl5
  Commit: d9ab8c2727e0e36d6986f311020a3823a50c15f5
      
https://github.com/Perl/perl5/commit/d9ab8c2727e0e36d6986f311020a3823a50c15f5
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Use mnemonic instead of repeating expr

This expression is repeated in several places; best to name it for
clarity and ease of change.


  Commit: 6bf2817fbafc89c5056a4f7764db8454517c1024
      
https://github.com/Perl/perl5/commit/6bf2817fbafc89c5056a4f7764db8454517c1024
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Remove misleading comments

cygwin works on UTF-16, not UCS-2, nor UTF-8


  Commit: 738fd72ead719c0d7c8c25fd5fd267bfee5b21e8
      
https://github.com/Perl/perl5/commit/738fd72ead719c0d7c8c25fd5fd267bfee5b21e8
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Remove memory leaks

These mallocs weren't getting freed.


  Commit: 712b0fe540d75f3956b3f84adacf455fddf34f79
      
https://github.com/Perl/perl5/commit/712b0fe540d75f3956b3f84adacf455fddf34f79
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Change wide_to_utf8() to call utf16_to_utf8()

The latter function is in the core, and doesn't require the locale to be
changed, unlike before.


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

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Call wide_to_utf8()

There are two places that do the same thing as wide_to_utf8(), in
different ways.  Use the single, common function


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

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Narrow scope of setlocale

The previous commit caused the locale not to have to be changed and
locked for as long as before.  Narrow the change to the scope needed.


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

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Change variable names

This makes the names consistent in the two parallel functions, in
preparation for folding the two into one.

This maps win_path => converted_path
          wbuf     => wsrc
          wpath    => wconverted


  Commit: 32e06e676967be248c85f857863130ec28135d0a
      
https://github.com/Perl/perl5/commit/32e06e676967be248c85f857863130ec28135d0a
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Refactor some expressions

These cause the long flag name to only be mentioned once.


  Commit: 0ef7655ac41e16aa0d6ff7de58ecf4088e388524
      
https://github.com/Perl/perl5/commit/0ef7655ac41e16aa0d6ff7de58ecf4088e388524
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Use SvPVx in both places

One function uses this form; the parallel function doesn't.  Not having
delved into the details, the 'x' form is safer, so should be used in the
same situation in both functions.


  Commit: 47ce4af90e16eb726ad266fba8bca038f5b6867d
      
https://github.com/Perl/perl5/commit/47ce4af90e16eb726ad266fba8bca038f5b6867d
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M pod/perldiag.pod

  Log Message:
  -----------
  Add cygwin warning to perldiag


  Commit: 0be0d080d859b3bb31b5b7306770c7bfdb6eba97
      
https://github.com/Perl/perl5/commit/0be0d080d859b3bb31b5b7306770c7bfdb6eba97
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Change a size_t value from int to STRLEN


  Commit: 549047413d53bfb8f6d809ee7f58f19b9be3df30
      
https://github.com/Perl/perl5/commit/549047413d53bfb8f6d809ee7f58f19b9be3df30
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Fold two nearly identical functions into one

These functions are to convert from a windows path to posix, and vice
versa.  Except for the direction, the process is identical.  But the two
functions that go in a single direction have diverged slightly over
time.

The previous few commits were integrating the changes in one version
into the opposite one.

The two versions are now sufficiently alike, with only white-space,
comment, and directionality differences, so the functions can be
combined.

A new common function is created, and the other two functions merely
wrap it, calling it with a parameter to indicate the direction.  The
result includes the union of all the comments from the two sides.


  Commit: 19f8f7801fc2901fc13c087ec1eea68667a07ed2
      
https://github.com/Perl/perl5/commit/19f8f7801fc2901fc13c087ec1eea68667a07ed2
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin: Convert to use utf8_to_utf16()

This now-core function simplifies things, and removes the need for
changing the locale.


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

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Add utf8_to_wide_extra_len()

This function is like utf8_to_wide, but has an additional parameter that
reserves extra space.  It thus is a superset of utf8_to_wide() which
changes to use it with 0 extra space needed.

And there is other code that parallels utf8_to_wide() but needs extra
space reserved.  That code is converted to use this (new, now common)
function, thus simplifying things.


  Commit: 17d47ba8c9a69b9e56b008aa912b20c23770be0b
      
https://github.com/Perl/perl5/commit/17d47ba8c9a69b9e56b008aa912b20c23770be0b
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Add comments, branch prediction


  Commit: 03f5a7049b65c2a02417c28aa2ffcccd014492c3
      
https://github.com/Perl/perl5/commit/03f5a7049b65c2a02417c28aa2ffcccd014492c3
  Author: Karl Williamson <[email protected]>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M cygwin/cygwin.c

  Log Message:
  -----------
  cygwin.c: Fold two similar code paths into one

These differ only in which source they operate on.


Compare: https://github.com/Perl/perl5/compare/8352eb56df16...03f5a7049b65

Reply via email to