Warning: "historical binary regexp match /.../n against UTF-8 string"
まだ誰も着手していません。
評価
調査の方向性
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby/net-imap のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
Websockify heartbeat for vnc_container対応中かも @robinkar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
needs verification
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
akitaonrails/ai-book-2026#13 ·
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信