code wiki / _hdl_build / nx_fold_punct_gate.nx

nx_fold_punct_gate.nx

buildroot/runtime/_hdl_build/nx_fold_punct_gate.nx

3572 B59 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_fold_punct_gate.nx -- regression gate for the browser text pipeline: HTML entity DECODE -> UTF-8 -> ASCII FOLD, the exact path br_draw_fb paints. Locks the 2026-07-10 fix that made typographic punctuation (— · ’ › … arrows) render instead of vanishing to blank gaps in the 5x7 font, WITHOUT regressing accent-fold (é->e) or ASCII passthrough. Found by dogfooding the Nishi browser on our own /compare pages. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_html_entities.nx nx_fold_punct_gate.nx

imports: nx_html_entities.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main fg_w fg_check fg_w ↻ fg_pipe_eq nx_html_decode_entities sys_mmap nx_html_entity_lookup _ent_utf8 nx_fold_ascii _fold_cp nx_fold_ascii ↻

structs

none

consts

none

functions

8func fg_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: fg_checkmain
9func fg_check(pass: i64, label: *u8, fails: *i64) -> i64
called by 1: main calls 1: fg_w
15func fg_pipe_eq(src: *u8, slen: i64, want: *u8) -> i64
28func main() -> i64