名前

perldelta - what is new for perl v5.22.1

perl5221delta - perl v5.22.1 での変更点

説明

This document describes differences between the 5.22.0 release and the 5.22.1 release.

この文書は 5.22.0 リリースと 5.22.1 リリースの変更点を記述しています。

If you are upgrading from an earlier release such as 5.20.0, first read perl5220delta, which describes differences between 5.20.0 and 5.22.0.

5.20.0 のような以前のリリースから更新する場合は、まず 5.20.0 と 5.22.0 の違いについて記述している perl5220delta を読んでください。

互換性のない変更

There are no changes intentionally incompatible with 5.20.0 other than the following single exception, which we deemed to be a sensible change to make in order to get the new \b{wb} and (in particular) \b{sb} features sane before people decided they're worthless because of bugs in their Perl 5.22.0 implementation and avoided them in the future. If any others exist, they are bugs, and we request that you submit a report. See "Reporting Bugs" below.

故意に 5.20.0 から互換性がなくなるようにした変更は、以下の一つを除いて ありません; 新しい \b{wb} と (特に) \b{sb} について、Perl 5.22.0 実装の バグのために、人々がこれらを無価値であると決定し、将来これらを使わないように するようになる前に、これらをまともにするために、目に見える変更を行いました。 もしその他にあれば、それはバグですので、報告をお願いします。 以下の "Reporting Bugs" を参照してください。

Bounds Checking Constructs

Several bugs, including a segmentation fault, have been fixed with the bounds checking constructs (introduced in Perl 5.22) \b{gcb}, \b{sb}, \b{wb}, \B{gcb}, \B{sb}, and \B{wb}. All the \B{} ones now match an empty string; none of the \b{} ones do. [perl #126319]

(Perl 5.22 で導入された) 境界チェック構文 \b{gcb}, \b{sb}, \b{wb}, \B{gcb}, \B{sb}, \B{wb} での、セグメンテーションフォルトを含む いくつかのバグが修正されました。 全ての \B{} で空文字列がマッチングするようになり、全ての \b{} で 空文字列がマッチングしないようになりました。 [perl #126319]

モジュールとプラグマ

更新されたモジュールとプラグマ

  • Module::CoreList has been upgraded from version 5.20150520 to 5.20151213.

    Module::CoreList はバージョン 5.20150520 から 5.20151213 に更新されました。

  • PerlIO::scalar has been upgraded from version 0.22 to 0.23.

    PerlIO::scalar はバージョン 0.22 から 0.23 に更新されました。

  • POSIX has been upgraded from version 1.53 to 1.53_01.

    POSIX はバージョン 1.53 から 1.53_01 に更新されました。

    If POSIX::strerror was passed $! as its argument then it accidentally cleared $!. This has been fixed. [perl #126229]

    POSIX::strerror の引数に $! が渡されると、誤って $! を クリアしていました。 これは修正されました。 [perl #126229]

  • Storable has been upgraded from version 2.53 to 2.53_01.

    Storable はバージョン 2.53 から 2.53_01 に更新されました。

  • warnings has been upgraded from version 1.32 to 1.34.

    warnings はバージョン 1.32 から 1.34 に更新されました。

    The warnings::enabled example now actually uses warnings::enabled. [perl #126051]

    warnings::enabled の例は、実際に warnings::enabled を 使うようになりました。 [perl #126051]

  • Win32 has been upgraded from version 0.51 to 0.52.

    Win32 はバージョン 0.51 から 0.52 に更新されました。

    This has been updated for Windows 8.1, 10 and 2012 R2 Server.

    これは Windows 8.1, 10, 2012 R2 Server のために更新されました。

文書

既存の文書の変更

perltie

  • The usage of FIRSTKEY and NEXTKEY has been clarified.

    FIRSTKEYNEXTKEY の使用法が明確化されました。

perlvar

  • The specific true value of $!{E...} is now documented, noting that it is subject to change and not guaranteed.

    $!{E...} の特定の真の値について、変更される可能性があり、保証されないことが 文書化されました。

診断メッセージ

The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see perldiag.

以下の追加や変更が、警告や致命的エラーメッセージ含む診断出力に行われました。 完全な診断メッセージの一覧については、perldiag を参照してください。

既存の診断メッセージの変更

  • The printf and sprintf builtins are now more careful about the warnings they emit: argument reordering now disables the "redundant argument" warning in all cases. [perl #125469]

    組み込み関数 printfsprintf は、警告の出力に対してより慎重に なりました: 引数の並べ替えは全ての場合において "redundant argument" 警告を 無効にするようになりました。 [perl #125469]

設定とコンパイル

  • Using the NO_HASH_SEED define in combination with the default hash algorithm PERL_HASH_FUNC_ONE_AT_A_TIME_HARD resulted in a fatal error while compiling the interpreter, since Perl 5.17.10. This has been fixed.

    Perl 5.17.10 から、NO_HASH_SEED 定義をデフォルトのハッシュアルゴリズム PERL_HASH_FUNC_ONE_AT_A_TIME_HARD と共に使うと、インタプリタの コンパイル時に致命的エラーになっていました。 これは修正されました。

  • Configuring with ccflags containing quotes (e.g. -Accflags='-DAPPLLIB_EXP=\"/usr/libperl\"') was broken in Perl 5.22.0 but has now been fixed again. [perl #125314]

    クォートを含む ccflags (例えば -Accflags='-DAPPLLIB_EXP=\"/usr/libperl\"') での Configure は Perl 5.22.0 で壊れていましたが、再び修正されました。 [perl #125314]

プラットフォーム対応

プラットフォーム固有の注意

IRIX
  • Under some circumstances IRIX stdio fgetc() and fread() set the errno to ENOENT, which made no sense according to either IRIX or POSIX docs. Errno is now cleared in such cases. [perl #123977]

    IRIX の stdio の fgetc() と fread() は、ある種の状況で errno に ENOENT を 設定しますが、IRIX や POSIX の文書によればこれは無意味なものです。 errno はこのような場合ではクリアされるようになりました。 [perl #123977]

  • Problems when multiplying long doubles by infinity have been fixed. [perl #126396]

    long double に無限を掛けたときの問題が修正されました。 [perl #126396]

  • All tests pass now on IRIX with the default build configuration.

    IRIX 上で、デフォルトのビルド設定で全てのテストが通るようになりました。

バグ修正の抜粋

  • qr/(?[ () ])/ no longer segfaults, giving a syntax error message instead. [perl #125805]

    qr/(?[ () ])/ はもはやセグメンテーションフォルトを起こさず、代わりに 文法エラーを出すようになりました。 [perl #125805]

  • Regular expression possessive quantifier Perl 5.20 regression now fixed. qr/PAT{min,max}+/ is supposed to behave identically to qr/(?>PAT{min,max})/. Since Perl 5.20, this didn't work if min and max were equal. [perl #125825]

    正規表現所有量指定子の Perl 5.20 での退行は修正されました。 qr/PAT{min,max}+/qr/(?>PAT{min,max})/ と同じように振る舞うことが 想定されていました。 Perl 5.20 から、minmax が同じ場合は動作していませんでした。 [perl #125825]

  • Certain syntax errors in "Extended Bracketed Character Classes" in perlrecharclass caused panics instead of the proper error message. This has now been fixed. [perl #126481]

    "Extended Bracketed Character Classes" in perlrecharclass でのある種の 文法エラーで、適切なエラーメッセージが表示されずに panic していました。 これは修正されました。 [perl #126481]

  • BEGIN <> no longer segfaults and properly produces an error message. [perl #125341]

    BEGIN <> はもはやセグメンテーションフォルトを起こさず、適切に エラーメッセージを出力するようになりました。 [perl #125341]

  • A regression from Perl 5.20 has been fixed, in which some syntax errors in (?[...]) constructs within regular expression patterns could cause a segfault instead of a proper error message. [perl #126180]

    正規表現中の (?[...]) 構文に 文法エラーがあると、適切なエラーメッセージが表示されずに セグメンテーションフォルトを引き起こすという、Perl 5.20 からの退行が 修正されました。 [perl #126180]

  • Another problem with (?[...]) constructs has been fixed wherein things like \c] could cause panics. [perl #126181]

    \c] のようなものが panic を引き起こすという、 (?[...]) 構文の もう一つの問題が修正されました。 [perl #126181]

  • In Perl 5.22.0, the logic changed when parsing a numeric parameter to the -C option, such that the successfully parsed number was not saved as the option value if it parsed to the end of the argument. [perl #125381]

    Perl 5.22.0 では、-C オプションへの数値引数をパースするときのロジックが 変更され、正しくパース出来た数値が引数の末尾としてパースされた場合、その値が オプションの値として保存されていませんでした。 [perl #125381]

  • Warning fatality is now ignored when rewinding the stack. This prevents infinite recursion when the now fatal error also causes rewinding of the stack. [perl #123398]

    警告の致命的エラー化は、スタックを巻き戻すときには無視されるようになりました。 これにより、致命的エラーがスタックを巻き戻すときの無限ループを防ぎます。 [perl #123398]

  • A crash with %::=(); J->${\"::"} has been fixed. [perl #125541]

    %::=(); J->${\"::"} でのクラッシュは修正されました。 [perl #125541]

  • Nested quantifiers such as /.{1}??/ should cause perl to throw a fatal error, but were being silently accepted since Perl 5.20.0. This has been fixed. [perl #126253]

    /.{1}??/ のようなネストした量指定子は致命的エラーを投げるべきですが、 Perl 5.20.0 から暗黙に受け入れていました。 これは修正されました。 [perl #126253]

  • Regular expression sequences such as /(?i/ (and similarly with other recognized flags or combination of flags) should cause perl to throw a fatal error, but were being silently accepted since Perl 5.18.0. This has been fixed. [perl #126178]

    /(?i/ (および同様にフラグまたはフラグの組み合わせとして認識されるもの) のような正規表現並びは致命的エラーを投げるべきですが、Perl 5.18.0 から暗黙に 受け入れていました。 これは修正されました。 [perl #126178]

  • A bug in hexadecimal floating point literal support meant that high-order bits could be lost in cases where mantissa overflow was caused by too many trailing zeros in the fractional part. This has been fixed. [perl #126582]

    16 進浮動小数点数対応において、小数部分の末尾のゼロが多すぎることによって 仮数部がオーバーフローし、上位ビットが失われることがあるバグがありました。 これは修正されました。 [perl #126582]

  • Another hexadecimal floating point bug, causing low-order bits to be lost in cases where the last hexadecimal digit of the mantissa has bits straddling the limit of the number of bits allowed for the mantissa, has also been fixed. [perl #126586]

    もう一つの 16 進浮動小数点数のバグとして、仮数部の最後の 16 進数が、仮数部に 認められているビット数の制限をまたぐようなビットを持っている場合、下位ビットが 失われることがあるというバグがありましたが、これも修正されました。 [perl #126586]

  • Further hexadecimal floating point bugs have been fixed: In some circumstances, the %a format specifier could variously lose the sign of the negative zero, fail to display zeros after the radix point with the requested precision, or even lose the radix point after the leftmost hexadecimal digit completely.

    さらなる 16 進浮動小数点数のバグが修正されました: 場合によっては、 %a フォーマット指定子が負のゼロの符号を失ったり、指定された精度で小数点の 後にゼロを表示するのに失敗したり、さらには一番左の 16 進数の後の小数点を 完全に失ったりすることがありました。

  • A crash caused by incomplete expressions within /(?[ ])/ (e.g. /(?[[0]+()+])/) has been fixed. [perl #126615]

    (/(?[[0]+()+])/ のような) /(?[ ])/ の中の不完全な表現による クラッシュが修正されました。 [perl #126615]

Acknowledgements

Perl 5.22.1 represents approximately 6 months of development since Perl 5.22.0 and contains approximately 19,000 lines of changes across 130 files from 27 authors.

Perl 5.22.1 は、Perl 5.22.0 以降、27 人の作者によって、 130 のファイルに約 19,000 行の変更を加えて、 約 6 ヶ月開発されてきました。

Excluding auto-generated files, documentation and release tools, there were approximately 1,700 lines of changes to 44 .pm, .t, .c and .h files.

自動生成ファイル、文書、リリースツールを除くと、44 の .pm, .t, .c, .h ファイルに約 1,700 行の変更を加えました。

Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.22.1:

Perl は、活気のあるユーザーと開発者のコミュニティのおかげで 20 年を超えて 繁栄しています。 以下の人々が、Perl 5.22.1 になるための改良に貢献したことが分かっています:

Aaron Crane, Abigail, Andy Broad, Aristotle Pagaltzis, Chase Whitener, Chris 'BinGOs' Williams, Craig A. Berry, Daniel Dragan, David Mitchell, Father Chrysostomos, Herbert Breunung, Hugo van der Sanden, James E Keenan, Jan Dubois, Jarkko Hietaniemi, Karen Etheridge, Karl Williamson, Lukas Mai, Matthew Horsfall, Peter Martini, Rafael Garcia-Suarez, Ricardo Signes, Shlomi Fish, Sisyphus, Steve Hay, Tony Cook, Victor Adam.

The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.

これはバージョンコントロール履歴から自動的に生成しているので、ほぼ確実に 不完全です。 特に、Perl バグトラッカーに問題を報告をしてくれた (とてもありがたい)貢献者の 名前を含んでいません。

Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish.

このバージョンに含まれている変更の多くは、Perl コアに含まれている CPAN モジュール由来のものです。 私たちは Perl の発展を助けている CPAN コミュニティ全体に感謝します。

For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.

全ての Perl の歴史的な貢献者のより完全な一覧については、どうか Perl ソース 配布に含まれている AUTHORS を参照してください。

バグ報告

If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at https://rt.perl.org/ . There may also be information at http://www.perl.org/ , the Perl Home Page.

もしバグと思われるものを見つけたら、comp.lang.perl.misc ニュースグループに 最近投稿された記事や https://rt.perl.org/ にある perl バグ データベースを確認してください。 Perl ホームページ、http://www.perl.org/ にも情報があります。

If you believe you have an unreported bug, please run the perlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of perl -V, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.

もしまだ報告されていないバグだと確信したら、そのリリースに含まれている perlbug プログラムを実行してください。 バグの再現スクリプトを十分小さく、しかし有効なコードに切りつめることを 意識してください。 バグレポートは perl -V の出力と一緒に perlbug@perl.org に送られ Perl porting チームによって解析されます。

If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5-security-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all the core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN.

もし報告しようとしているバグがセキュリティに関するもので、公開されている メーリングリストに送るのが不適切なものなら、 perl5-security-report@perl.org に送ってください。 このアドレスは、問題の影響を評価し、解決法を見つけ、Perl が対応している 全てのプラットフォームで問題を軽減または解決するパッチをリリースするのを 助けることが出来る、全てのコアコミッタが参加している非公開の メーリングリストになっています。 このアドレスは、独自に CPAN で配布されているモジュールではなく、 Perl コアのセキュリティ問題だけに使ってください。

SEE ALSO

The Changes file for an explanation of how to view exhaustive details on what changed.

変更点の完全な詳細を見る方法については Changes ファイル。

The INSTALL file for how to build Perl.

Perl のビルド方法については INSTALL ファイル。

The README file for general stuff.

一般的なことについては README ファイル。

The Artistic and Copying files for copyright information.

著作権情報については Artistic 及び Copying ファイル。