Re: Bug: csc does not recognize user defined character names
Kon Lovett via Chicken-users <[email protected]> Fri, 26 Jun 2026 11:00:38 -0700
| Newsgroups | gmane.lisp.scheme.chicken |
|---|---|
| Message-ID | <[email protected]> |
> On Jun 26, 2026, at 10:44=E2=80=AFAM, Hern=C3=A1n Ibarra Mejia via = Chicken-users <[email protected]> wrote: >=20 > Hello, >=20 > char-name is not handled correctly by csc. runtime syntax extensions will not be recognized by the reader at = compile time. the compile time environment must be extended before = source read. try the csc `-extend=E2=80=99 option.=20 >=20 > In mwe.scm: > ``` > (char-name 'any #\x) > (display #\any) > ``` >=20 > In the shell: > ``` > % chicken-csc mwe.scm >=20 > Error: (line 2) unknown named character: "any" >=20 > Error: shell command terminated with non-zero exit status 17920: = '/usr/bin/chicken' 'mwe.scm' -output-file 'mwe.c' > ``` >=20 > csi handles it fine: > ``` > % chicken-csi -s mwe.scm > x > ``` >=20 > Kind regards, > Hern=C3=A1n >=20 > ### About my setup >=20 > Arch Linux x86_64 >=20 > ``` > % chicken-csc -version > CHICKEN > (c) 2008-2022, The CHICKEN Team > (c) 2000-2007, Felix L. Winkelmann > Version 5.4.0 (rev 1a1d1495) > linux-unix-gnu-x86-64 [ 64bit dload ] > ``` >=20