GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cmp - `-l` offset column is 19 characters wide when one operand is stdin · Issue #348 · uutils/diffutils Open Labels bugSomething isn't workingSomething isn't workinggnu-compatBehaviour differs from GNUBehaviour differs from GNUgood first issueGood for newcomersGood for newcomersoss-scannerFound by Anthropic's OSS ScannerFound by Anthropic's OSS Scanner DescriptionKnown: #330 (merged PR) — #330 GNU Reproductionprintf 'abcdefghij' > c1; printf 'abcdeXghiY' > c2 Rust (incorrect) $ cat c1 | ./target/release/diffutils cmp -l - c2 6 146 130 10 152 131 # Exit code: 1 GNU (correct) $ cat c1 | LC_ALL=C cmp -l - c2 6 146 130 10 152 131 # Exit code: 1 Root cause
let mut offset_width = params.max_bytes.unwrap_or(BytesLimitU64::MAX); if let (Ok(a_meta), Ok(b_meta)) = (fs::metadata(¶ms.from), fs::metadata(¶ms.to)) { TestAdd to #[test] fn cmp_verbose_offset_width_stdin() -> Result<(), Box<dyn std::error::Error>> { let tmp_dir = tempdir()?; let b_path = tmp_dir.path().join("b"); std::fs::write(&b_path, b"abcdeXghiY")?; let mut cmd = cargo_bin_cmd!("diffutils"); cmd.arg("cmp").arg("-l").arg("-").arg(&b_path); cmd.write_stdin("abcdefghij"); cmd.assert() .code(predicate::eq(1)) .stdout(predicate::eq(" 6 146 130\n10 152 131\n")); Ok(()) } Reported by Anthropic's OSS Scanner (ANT-2026-2R3RAAPG). Activity
MetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't workinggnu-compatBehaviour differs from GNUBehaviour differs from GNUgood first issueGood for newcomersGood for newcomersoss-scannerFound by Anthropic's OSS ScannerFound by Anthropic's OSS Scanner TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |