Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > perl.perl5.changes > #34344

[Perl/perl5] 40ed36: utf8_to_bytes: remove bad const from output argument

Newsgroups perl.perl5.changes
Date 2026-02-06 14:47 -0800
Message-ID <Perl/perl5/push/refs/heads/blead/fc11c0-40ed36@github.com> (permalink)
Subject [Perl/perl5] 40ed36: utf8_to_bytes: remove bad const from output argument
From perl5-changes@perl.org (Lukas Mai via perl5-changes)

Show all headers | View raw


  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 40ed368444e1159f6c72323d96b840764572b2fc
      https://github.com/Perl/perl5/commit/40ed368444e1159f6c72323d96b840764572b2fc
  Author: Lukas Mai <lukasmai.403@gmail.com>
  Date:   2026-02-06 (Fri, 06 Feb 2026)

  Changed paths:
    M pp_pack.c

  Log Message:
  -----------
  utf8_to_bytes: remove bad const from output argument

The 'const' was added in commit f7fe979eb250 (when the function was
still called uni_to_bytes()). This was an error because the function
writes through buf, but it went unnoticed because the (U8 *) casts in
the function body inadvertently cast away const, too.

May address the clang build warnings in #24165.



To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications

Back to perl.perl5.changes | Previous | Next | Find similar | Unroll thread


Thread

[Perl/perl5] 40ed36: utf8_to_bytes: remove bad const from output argument perl5-changes@perl.org (Lukas Mai via perl5-changes) - 2026-02-06 14:47 -0800

csiph-web