Subject: bug#51877: 27.2; term: error in process filter

From: Eli Zaretskii <[email-masked]>
Date: Thu, 20 Jan 2022 19:54:46 +0200

> Date: Thu, 20 Jan 2022 08:39:47 -0900
> From: Christopher Howard <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> 
> The package emacs-next-28.0.50-0.2ea3466 is available in my current checkout of Guix. I seem to get the same results:
> 
> ```
> Debugger entered--Lisp error: (args-out-of-range "$ \2\220\22\33nN\4\216" 0 -42)
>   term-emulate-terminal(#<process terminal> "l\0l\234\236|\0\214l\340|\2\f\f\f\204\4l\354\4#|\216\203\3\344\22\262\337|\33b\204\fb\214\362oo\337lNo\234\343\344\f#\34p...")
> ```
> 
> Is that new enough?

No, that is from 1.5 years ago.

Can you tell how you set the encoding to raw-text?  I see that the
process filter function which barfs use locale-coding-system to decode
the process output -- did you change that to use 'raw-text' by
modifying the code of term.el?  If not, what did you do?