我正在运行macOS 10.14和zsh。
我注意到默认安装了nano 2.0并缺少一些功能。所以,我尝试编译并安装最新版本(3.2)。
这工作正常,除了两件事:
- 它总是在没有nls的情况下编译。
- 它总是在没有utf-8支持的情况下编译。
nano --version
GNU nano, version 3.2
(C) 1999-2011, 2013-2018 Free Software Foundation, Inc.
(C) 2014-2018 the contributors to nano
Email: nano@nano-editor.org Web: https://nano-editor.org/
Compiled options: --disable-libmagic --disable-nls --disable-utf8
在配置期间,它确实发出了关于utf-8的警告,所以它确实有意义,即禁用utf-8支持。
configure: WARNING:
*** Insufficient UTF-8 support was detected in your curses and/or C
*** libraries. If you want UTF-8 support, please verify that your slang
*** was built with UTF-8 support or your curses was built with wide
*** character support, and that your C library was built with wide
*** character support.
解决这个问题的正确方法是什么?我真的希望nls支持工作。