Warning: "historical binary regexp match /.../n against UTF-8 string"

オープン
#219 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ruby
領域
api

調査の方向性

command_data.rb:57 の send_string_data(str, tag) から開始します。ここでは /[\r\n]/n が non-ascii_safe? な UTF-8 文字列に適用されています。Ruby issue 19767 をコンテキストとして、警告を再現し、match? の動作を比較します。意図された文字列チェックを変更せずに警告に対処できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Seeing the following in logs:

warning: historical binary regexp match /.../n against UTF-8 string

This is triggered when UTF-8 strings that are not ascii_safe? are checked with the /[\r\n]/n regexp in send_string_data(str, tag) (command_data.rb:57).

Other than adding noise to the logs, I don't know if it makes any significant difference. If we were looking at MatchData, it would matter... but here we're just looking at match?.

See also: https://bugs.ruby-lang.org/issues/19767 and the commit links in the comments there.

主要言語
Ruby
スター
121
フォーク
47
平均マージ
19時間 25分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ruby/net-imap のほかの issue

ruby/net-imap の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。