rev: multibyte characters are reversed byte by byte in UTF-8 locales
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start by locating the rev command implementation and its tests, then run the UTF-8 reproduction from the issue with LC_ALL=C.UTF-8. Compare its output with the stated util-linux behavior, including the combining mark. Done means reversing Unicode code points rather than the bytes within multibyte characters.
索引モデルが issue の本文から書いたものです。
説明
uutils rev reverses each line byte by byte even in a UTF-8 locale. This reverses the bytes inside every multibyte character and produces invalid UTF-8. util-linux 2.42.4 reverses the order of code points instead.
Set UTIL_LINUX_REV to the absolute path to the rev binary from util-linux 2.42.4.
printf 'aé中🙂b\ne\314\201x\n' | LC_ALL=C.UTF-8 "$UTIL_LINUX_REV"
util-linux prints b🙂中éa, followed by x, U+0301, and e. uutils reverses the bytes inside é, 中, 🙂, and the combining mark.
- 主要言語
- Rust
- スター
- 223
- フォーク
- 61
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uutils/util-linux のほかの issue
-
Implement `chrt`オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
uutils/util-linux#641 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
uutils/util-linux#638 ·
メンテナーはふだん 1 日以内に返信
-
ionice: should the port enforce the documented ranges for -c and -n?対応中かも @mmclinton が 44 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
uutils/util-linux#624 ·
メンテナーはふだん 1 日以内に返信
-
chcpu: a large cpu-list range runs for hours対応中かも @mmclinton が 48 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
uutils/util-linux#620 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
uutils/util-linux#558 ·
メンテナーはふだん 1 日以内に返信
uutils/util-linux の issue をすべて見る
似ている issue
-
Docs: refresh target-app-parity and file-format-parity against main対応中かも @vangel76 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
storytold/photocraft#4417 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bevyengine/dlss_wgpu#37 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
bherbruck/solvecraft#369 ·
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
alunduil/git-worktree-poi#11 ·