Conversation
Contributor
|
⚡ プレビュー (HTML) (更新時刻: 2026-01-30 13:20:31 JST) 変更記事一覧1件の記事が変更されました。 ※ソース (.md) に直接変更のあった記事を列挙しています。グローバル修飾や変換規則の変更による変化は考慮していません。 |
Member
Author
|
mblen のシフト状態に関する記述が巷の記述とC規格の記述で違うと思ったら、POSIX.1-2017 規格 (前回のシフト状態を使う) までは C 規格と違う記述になっていて、その後 POSIX.1-2024 (毎回シフト状態をクリアする) で C 規格に一致する様に改められたみたいです。一方で GNU/Linux は POSIX.1-2017 の振る舞い で、今後も C/POSIX に従うつもりはないんだろうな…という状況です。 |
Raclamusi
reviewed
Dec 3, 2025
815d0a5 to
3cde062
Compare
8e6ec7e to
71ddec2
Compare
Member
Author
これは過去のC規格を追ったところ、そもそもC規格が C99 から C11 になる時に振る舞いが変わったみたいです (WG14 N1373)。その辺りの経緯も分かる範囲でまとめたのですが、誰かに確認していただきたいです。 |
* std::mblen の内部状態をクリアせずに使用しているのを修正 * size_t に対する std::size_t のつけ忘れを修正 * nullptr を指定した時の戻り値の記述を修正 * 関連するロカールカテゴリを明記
残り MB_CUR_MAX バイトが読み取れることが保証されていないと未定義動作 Co-authored-by: Raclamusi <raclamusi@gmail.com>
Member
Author
|
誰かに確認していただければ良かったですが特にコメントもないようなのでマージしますね。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変換結果確認用