PHP 8 shell: can't input non-Ascii chars

[email protected] (Денис Романенко)
Newsgroups php.general
Message-ID <CALSd-cppOwCqYyeH8=vBVPU4vGeBUFxgrC_vkJpdUM+VgKHLkg@mail.gmail.com>
After upgrading to PHP 8 in my WSL 2 I was stuck with a strange problem: I
can't input any non-ASCII characters in shell, nor in interactive shell and
PsySH.

In simple words: if I try to input in shell "Привет" - russian letters just
not get in terminal.

I tried Russian, Serbian, Chinese and some unicode symbols. Can't input
from keyboard or paste from clipboard.

I have this behavior in Ubuntu 21.10, 20.04 (bare metal) and 20.04 (WSL2).
In Mac OS - everything is fine. I use php from "ondrej/php".

Does anyone encounter this problem or have a workaround for it?


*****

Best Regards, Denis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.