我正在尝试将MinTTY与MSYS一起使用(从此处下载),我注意到它似乎不支持 Unicode。
IE:
我无法将 Unicode 文本粘贴到其中(结果是垃圾)。
如果我
cat
将 Unicode 文件发送到终端(无论是 UTF-8 还是 UTF-16),我就会得到垃圾。如果我使用
ls
并且文件名是 Unicode,它会打印出垃圾。将结果传送到文件并没有帮助——即使在支持 Unicode 的文本编辑器中查看它仍然是垃圾。我无法弄清楚
UTF-8
设置中的设置是如何工作的。它似乎没有改变任何东西。当我尝试下载源代码并构建它时,我得到了我无法解决的构建错误:
Makefile:117: charset.d: No such file or directory Makefile:117: child.d: No such file or directory Makefile:117: config.d: No such file or directory Makefile:117: ctrls.d: No such file or directory Makefile:117: minibidi.d: No such file or directory Makefile:117: std.d: No such file or directory Makefile:117: term.d: No such file or directory Makefile:117: termclip.d: No such file or directory Makefile:117: termline.d: No such file or directory Makefile:117: termmouse.d: No such file or directory Makefile:117: termout.d: No such file or directory Makefile:117: winclip.d: No such file or directory Makefile:117: winctrls.d: No such file or directory Makefile:117: windialog.d: No such file or directory Makefile:117: wininput.d: No such file or directory Makefile:117: winmain.d: No such file or directory Makefile:117: winprint.d: No such file or directory Makefile:117: wintext.d: No such file or directory Makefile:117: wintip.d: No such file or directory Makefile:117: xcwidth.d: No such file or directory Makefile:117: res.d: No such file or directory windres --preprocessor 'gcc -E -xc-header -DRC_INVOKED -MMD -MP 'res.rc res.o gcc xcwidth.c -c -MMD -MP -include std.h -std=gnu99 -Wall -Wextra -Werror -Wundef -march=i586 -mtune=pentium-m -DNDEBUG -fomit-frame-pointer -Os In file included from <command-line>:0:0: ./std.h:4:28: fatal error: cygwin/version.h: No such file or directory compilation terminated. make: *** [xcwidth.d] Error 1
问题:
是否有可能以某种方式在 MSYS/MinTTY 中获得 Unicode 支持(这似乎是两者的问题)?
如果没有,那么我在哪里可以获得所有这些文件
charset.d
,以及如何为 MSYS 构建 MinTTY?