tmux: Korean letter patch

Closes Homebrew/homebrew#19123.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jeong Mok Cho 2013-04-11 17:34:08 +09:00 committed by Adam Vandenberg
parent 0df512c61a
commit 97d84fba67

View file

@ -18,6 +18,10 @@ class Tmux < Formula
def patches
# Fixes installation failure on Snow Leopard
# http://sourceforge.net/mailarchive/forum.php?thread_name=CAJfQvvc2QDU%3DtXWb-sc-NK0J8cgnDRMDod6CNKO1uYqu%3DY5CXg%40mail.gmail.com&forum_name=tmux-users
# http://sourceforge.net/p/tmux/tickets/41/
# Fixes abnormal displaying Korean letters on Mac OS X
# https://gist.github.com/niceview/5343842
# Accepted upstream, can be removedin next version.
DATA
end
@ -64,3 +68,17 @@ index 23de9d5..b5efe84 100644
+ return (strdup(bsdinfo.pbi_comm));
return (NULL);
}
diff --git a/utf8.c b/utf8.c
index 88d847a..34e5087 100644
--- a/utf8.c
+++ b/utf8.c
@@ -173,7 +173,7 @@ struct utf8_width_entry utf8_width_table[] = {
{ 0x30000, 0x3fffd, 2, NULL, NULL },
{ 0x00711, 0x00711, 0, NULL, NULL },
{ 0x0fe00, 0x0fe0f, 0, NULL, NULL },
- { 0x01160, 0x011ff, 0, NULL, NULL },
+ { 0x01160, 0x011ff, 1, NULL, NULL },
{ 0x0180b, 0x0180d, 0, NULL, NULL },
{ 0x10a3f, 0x10a3f, 0, NULL, NULL },
{ 0x00981, 0x00981, 0, NULL, NULL },