stty: `stty -F /dev/tty` reports incorrect baud rate on PowerPC64 Little-endian
Open
Nobody has claimed this yet.
U - stty
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
(This has been forwarded from Launchpad Bug #2146427)
Problem
stty reports an incorrect baud rate on ppc64le systems.
Reproduce
On a ppc64le system, run:
stty -F /dev/tty
This outputs:
speed 15 baud; line = 0;
-brkint ixon -imaxbel iutf8
To compare with GNU, run:
gnustty -F /dev/tty
This outputs the correct baud rate:
speed 38400 baud; line = 0;
-brkint -imaxbel iutf8
System
- OS release: Ubuntu 26.04 (Development branch)
- uutils coreutils version: 0.7.0-0ubuntu1
- CPU architecture: ppc64le
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running stty -F /dev/tty on a ppc64le system and compare its output with gnustty -F /dev/tty. Trace the stty implementation and its baud-rate handling; done means the command reports the correct 38400 baud rate and matching terminal flags on ppc64le.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100