Landing: 0e634b961123
Project / Subsystem
gcc / ada
Date
2026-03-27
Author
Marc Poulhiès
Commit
0e634b961123280c17c1c651b1d8b1567b9b523c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 0e634b961123280c17c1c651b1d8b1567b9b523c
- source_type
- github
- headline
- Ada: Fix bug when reading multibyte utf-8 character
- tldr
- A bug in the Ada compiler that caused issues when reading multibyte UTF-8 characters from a terminal has been fixed.
- author
- Marc Poulhiès
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • utf-8
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-03-27T00:00:00.000Z
This commit fixes an issue in the Ada compiler that occurred when reading multibyte UTF-8 characters from a terminal. The get_immediate function, used for reading characters, was incorrectly interpreting multibyte UTF-8 characters as negative values when the char type was signed. This resulted in range check failures. The fix involves changing the variable type to unsigned char to avoid the signed conversion.