About tex.error (and logs.texerrormessage)
"Jairo A. del Rio" <[email protected]> Mon, 3 Aug 2026 02:29:03 -0500
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <CAKyqqab=h5NhYE07rP9M1e7Kq_bbnMP5dLSogNc0cXM_obK2gw@mail.gmail.com> |
--===============4862436804306175831==
Content-Type: multipart/alternative; boundary="0000000000001a009606581f7f75"
--0000000000001a009606581f7f75
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi, list! When one tries to print non-ASCII characters using
logs.texerrormessage, based on tex.error, "weird character" and a negative
value is printed and characters are just ignored. This warning comes from
here in texprinting.c:
153 =E2=94=82 void tex_print_char(int s)
154 =E2=94=82 {
155 =E2=94=82 if (s < 0 || s > 255) {
156 =E2=94=82 tex_formatted_warning("print", "weird character %i",=
s);
I wonder whether a cast is needed here or it's rather a bug coming from
custom compiling flags as it is my case.
Best regards,
Jairo
--0000000000001a009606581f7f75
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div>Hi, list! When one tries to print non-ASCII=
characters using logs.texerrormessage, based on tex.error, "weird cha=
racter" and a negative value is printed and characters are just ignore=
d. This warning comes from here in texprinting.c:<br><br>=C2=A0153 =E2=94=
=82 void tex_print_char(int s)<br>=C2=A0154 =E2=94=82 {<br>=C2=A0155 =E2=94=
=82 =C2=A0 =C2=A0 if (s < 0 || s > 255) {<br>=C2=A0156 =E2=94=82 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 tex_formatted_warning("print", "wei=
rd character %i", s);<br><br></div>I wonder whether a cast is needed h=
ere or it's rather a bug coming from custom compiling flags as it is my=
case.<br><br></div>Best regards,<br><br></div>Jairo</div>
--0000000000001a009606581f7f75--
--===============4862436804306175831==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
--===============4862436804306175831==--