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 — diff - `--palette` values are used verbatim; backslash escapes are not decoded · Issue #362 · 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 DescriptionGNU Reproductionprintf 'a\nb\n' > old; printf 'a\nc\n' > new Rust (incorrect) $ ./target/release/diffutils diff --color=always --palette='ad=\061;32' old new | tail -1 | cat -v ^[[\061;32m> c^[[0m # Exit code: 0 (of the pipeline; diff itself exits 1) GNU (correct) $ LC_ALL=C diff --color=always --palette='ad=\061;32' old new | tail -1 | cat -v ^[[1;32m> c^[[0m # Exit code: 0 (of the pipeline; diff itself exits 1) ( Root cause
for entry in spec.split(':').filter(|entry| !entry.is_empty()) { let Some((name, value)) = entry.split_once('=') else { return Err(PaletteError::Unparsable); }; ... value.clone_into(slot); Splitting on TestAdd to #[test] fn palette_decodes_escapes() -> Result<(), Box<dyn std::error::Error>> { let mut old = NamedTempFile::new()?; old.write_all(b"a\nb\n")?; let mut new = NamedTempFile::new()?; new.write_all(b"a\nc\n")?; let mut cmd = cargo_bin_cmd!("diffutils"); cmd.arg("diff") .arg("--color=always") .arg(r"--palette=ad=\061;32") .arg(old.path()) .arg(new.path()); cmd.assert() .code(predicate::eq(1)) .stdout(predicate::str::contains("\x1b[1;32m> c\x1b[0m")); Ok(()) } Reported by Anthropic's OSS Scanner (ANT-2026-JH4TKA3A). 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. |