Debian Codegraph @

debian/patches/2002_older_chardetng.patch

raw symbols SCIP
1 Descriptionscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/patches/`2002_older_chardetng.patch`#Description.: use older major version of crate chardetng
2 This essentially reverts upstream git commit daac117.
3 Authorscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/patches/`2002_older_chardetng.patch`#Author.: Jonas Smedegaard <[email protected]scip-debian . . . identity/`[email protected]`.>
4 Bug-Debianscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/patches/`2002_older_chardetng.patch`#Bug-Debian.: https://bugs.debian.org/1134587scip-debian-bts debian-bts . . 1134587:
5 Forwardedscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/patches/`2002_older_chardetng.patch`#Forwarded.: not-needed
6 Last-Updatescip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/patches/`2002_older_chardetng.patch`#Last-Update.: 2026-04-21
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 --- a/helix-view/Cargo.tomlscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/upstream/`helix-view/Cargo.toml`:
10 +++ b/helix-view/Cargo.tomlscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/upstream/`helix-view/Cargo.toml`:
11 @@ -48,7 +48,7 @@
12
13 slotmap.workspace = true
14
15 -chardetng = "1.0"
16 +chardetng = "0.1"
17
18 serde = { version = "1.0", features = ["derive"] }
19 serde_json = "1.0"
20 --- a/helix-view/src/document.rsscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/upstream/`helix-view/src/document.rs`:
21 +++ b/helix-view/src/document.rsscip-debian debian hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2 hx/upstream/`helix-view/src/document.rs`:
22 @@ -617,13 +617,9 @@
23 .map(|encoding| (encoding, false))
24 .or_else(|| encoding::Encoding::for_bom(buf).map(|(encoding, _bom_size)| (encoding, true)))
25 .unwrap_or_else(|| {
26 - let mut encoding_detector =
27 - chardetng::EncodingDetector::new(chardetng::Iso2022JpDetection::Allow);
28 + let mut encoding_detector = chardetng::EncodingDetector::new();
29 encoding_detector.feed(buf, is_empty);
30 - (
31 - encoding_detector.guess(None, chardetng::Utf8Detection::Allow),
32 - false,
33 - )
34 + (encoding_detector.guess(None, true), false)
35 });
36 let decoder = encoding.new_decoder();
37