warning: mingw-w64-ucrt-x86_64-gcc-14.1.0-3 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-python-3.11.9-1 is up to date -- skipping
there is nothing to do
∈√≈≡⊥
∈√≈≡⊥
∈√≈≡⊥
∈√≈≡⊥
∈√≈≡⊥
∈√≈≡⊥
Key Observations
When multi-byte characters are written by a C or C++ program, the actual characters written don't appear to be related, and can themselves by multi-byte.
If the output is saved to a variable and then echoed (see echo $(./a) above), the characters are displayed correctly.
Upon writing multi-byte characters from Python or sh, nothing unexpected occurs.
I am using 64-bit MSYS2 20230526. I didn't try this with the latest version because I didn't find any bug reports for this issue even after searching for a while.
If a C or C++ program writes multi-byte characters to the console, they are not rendered correctly. The following shell script demonstrates the same.
Here's the output.
Key Observations
echo
ed (seeecho $(./a)
above), the characters are displayed correctly.I am using 64-bit MSYS2 20230526. I didn't try this with the latest version because I didn't find any bug reports for this issue even after searching for a while.