Subject: Re: bug#52295: 28.0.90; Killing text results in coding system complaint

From: Eli Zaretskii <[email-masked]>
Date: Tue, 07 Dec 2021 09:33:01 +0200

On December 7, 2021 7:51:32 AM GMT+02:00, Po Lu <[email-masked]> wrote:
> Po Lu <[email-masked]> writes:
> 
> > `globals_of_w32select' is called, but QANSICP is nil:
> >
> >   Fprint (QANSICP, Qexternal_debugging_output);
> >
> > Prints "nil" onto the console.
> 
> ??? It appears that coding_from_cp is actually returning nil in this
> case.
> 
> This must be a bug in intern, because I don't see how else it could
> possibly return nil.
> 

Maybe 'intern' signals an error?  There's a check_obarray test inside intern_1, which could signal an error.

If you print the value which 'intern' returns in coding_from_cp, do you see a nil value printed?