[perl5-dbi/dbi] 5deedc: Implement warn_sv/croak_sv with UTF-8 support also...

----==_mimepart_5a44fb442f757_76682ae86a8dbc103272b
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

  Branch: refs/heads/master
  Home:   https://github.com/perl5-dbi/dbi
  Commit: 5deedcfee79137c71a2183830f709da3bbfae77a
      https://github.com/perl5-dbi/dbi/commit/5deedcfee79137c71a2183830f709da3bbfae77a
  Author: Pali <pali@cpan.org>
  Date:   2017-08-14 (Mon, 14 Aug 2017)

  Changed paths:
    M DBI.xs
    M t/91_store_warning.t

  Log Message:
  -----------
  Implement warn_sv/croak_sv with UTF-8 support also for Perl prior to 5.14

Calling croak(NULL) would take exception from the $@ without loosing
SVf_UTF8 flag with a bonus which support object references. So it is better
equivalent for croak_sv() from Perl 5.14+.

Calling warn("%" SVf, SVfARG(sv)) is what older Perl's pp_warn() does to
pass scalar independently of SVf_UTF8 flag.

Fixes RT#102404 for Perl prior to 5.14.


  Commit: 654f47a4db12f6af9b6802415bc31888a985527b
      https://github.com/perl5-dbi/dbi/commit/654f47a4db12f6af9b6802415bc31888a985527b
  Author: Tim Bunce <Tim.Bunce@pobox.com>
  Date:   2017-12-28 (Thu, 28 Dec 2017)

  Changed paths:
    M DBI.xs
    M t/91_store_warning.t

  Log Message:
  -----------
  Merge pull request #53 from pali/master

Implement warn_sv/croak_sv with UTF-8 support also for Perl prior to 5.14


Compare: https://github.com/perl5-dbi/dbi/compare/d497cd63c78f...654f47a4db12
----==_mimepart_5a44fb442f757_76682ae86a8dbc103272b--
0
Tim
12/28/2017 2:10:12 PM
perl.dbi.dev 1927 articles. 0 followers. Follow

0 Replies
142 Views

Similar Articles

[PageSpeed] 45

Reply: