emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 6ed1994d27: Prevent crashes from illegal locale coding system


From: Eli Zaretskii
Subject: Re: master 6ed1994d27: Prevent crashes from illegal locale coding systems
Date: Mon, 14 Feb 2022 16:07:10 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Mon, 14 Feb 2022 12:46:56 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I'd rather we tried to decode it in any way possible.  We never do
> > anything like this anywhere else where decoding is involved.
> 
> Thanks, could you point me to an example of decoding text "in any way
> possible?  I'm not sure how to do that inside C code.

See DECODE_SYSTEM, for one simple example.  Can you use that?

> > I don't understand why.  We do that in C in many places, see the calls
> > to internal_condition_case and its ilk.  Or am I missing something?
> 
> I was under the impression that `internal_condition_case' could only be
> called for Lisp functions, but that's evidently wrong.

Yes, we use that for C functions as well.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]