zsh 5.2-test-1 (devel)
Add option --with-unicode9 on devel and head for Unicode 9 character width support. The option is not enabled by default because support is required from both the shell and the terminal emulator; disparity could cause garbled output. A simple test case is "echo 👍1👍2👍3" at the prompt: - If neither zsh nor the terminal emulator has Unicode 9 width tables, each digit will overlap with its previous emoji, but editing will still be very much possible; - If zsh has Unicode 9 width tables but the terminal emulator doesn't, the string will be garbled and editing will be very difficult; - If both zsh and the terminal emulator have Unicode 9 width tables, output will be correct and editing won't be hindered. Terminal.app currently doesn't support Unicode 9, making the option a tough sell as default. For the record, iTerm2 nightlies since 08/08/2016 have opt-in Unicode 9 width support and version switching. See https://gitlab.com/gnachman/iterm2/wikis/unicodeversionswitching.
This commit is contained in:
parent
05d7a2858e
commit
3e43c3d24c
1 changed files with 14 additions and 0 deletions
|
@ -27,9 +27,21 @@ class Zsh < Formula
|
|||
sha256 "d140366f62354011a7de99949e847ae44d6aa70f2b51e1722028844e4fa0b252" => :yosemite
|
||||
end
|
||||
|
||||
devel do
|
||||
url "http://www.zsh.org/pub/development/zsh-5.2-test-1.tar.gz"
|
||||
version "5.2-test-1"
|
||||
sha256 "50b18b837562e748ca2bc3054f167b71df4482d2da8263ef502acb5d21f23259"
|
||||
|
||||
option "with-texi2html", "Build HTML documentation"
|
||||
option "with-unicode9", "Build with Unicode 9 character width support"
|
||||
depends_on "texi2html" => [:build, :optional]
|
||||
end
|
||||
|
||||
head do
|
||||
url "git://git.code.sf.net/p/zsh/code"
|
||||
depends_on "autoconf" => :build
|
||||
|
||||
option "with-unicode9", "Build with Unicode 9 character width support"
|
||||
end
|
||||
|
||||
option "without-etcdir", "Disable the reading of Zsh rc files in /etc"
|
||||
|
@ -57,6 +69,8 @@ class Zsh < Formula
|
|||
--with-tcsetpgrp
|
||||
]
|
||||
|
||||
args << "--enable-unicode9" if build.with? "unicode9"
|
||||
|
||||
if build.without? "etcdir"
|
||||
args << "--disable-etcdir"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue