tree: Fix utf-8 support

This commit is contained in:
Fredrik Fornwall 2016-03-23 10:55:58 -04:00
parent ef729f739e
commit 4cb7166aa9
2 changed files with 13 additions and 1 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://mama.indstate.edu/users/ice/tree/
TERMUX_PKG_DESCRIPTION="Recursive directory lister producing a depth indented listing of files"
TERMUX_PKG_DEPENDS="libandroid-support"
TERMUX_PKG_VERSION=1.7.0
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_BUILD_REVISION=2
TERMUX_PKG_MAINTAINER=$(echo "Gert Scholten <gscholt at gmail dot com>" | sed 's/\sat\s/@/' | sed 's/\sdot\s/./')
TERMUX_PKG_SRCURL=http://mama.indstate.edu/users/ice/tree/src/tree-${TERMUX_PKG_VERSION}.tgz
TERMUX_PKG_BUILD_IN_SRC=yes

View File

@ -0,0 +1,12 @@
diff -u -r ../tree-1.7.0/tree.c ./tree.c
--- ../tree-1.7.0/tree.c 2014-04-23 17:38:24.000000000 -0400
+++ ./tree.c 2016-03-23 10:54:14.212468421 -0400
@@ -112,7 +112,7 @@
}
/* Until I get rid of this hack, make it linux/cygwin/HP nonstop only: */
-#if defined (LINUX) || defined (CYGWIN) || defined (__TANDEM)
+#if defined (LINUX) || defined (CYGWIN) || defined (__TANDEM) || defined (__ANDROID__)
mb_cur_max = (int)MB_CUR_MAX;
#else
mb_cur_max = 1;