Package: tree
Version: 1.5.3-1
Severity: normal

Hi,

currently tree uses plain isprint() to determine if a character in the
filename is printable.

This is because the cpp-macro LINUX isn't defined, so tree thinks
MB_CUR_MAX cannot be used and substitutes a default value of 1.  With
this default value it uses isprint() instead of iswprint() do determine
if a character is printable.

The following patch fixes this.

Nikolaus Schulz

diff --git a/debian/rules b/debian/rules
index b86cf85..320b43d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ MANDIR = $(PREFIX)/share/man/man1
 # Leave LDFLAGS empty so symbol table and relocation information won't be
 # removed from the executable; dh_strip takes care of this when needed
 LDFLAGS =
-CFLAGS = -g -Wall -fomit-frame-pointer -D_LARGEFILE64_SOURCE 
-D_FILE_OFFSET_BITS=64
+CFLAGS = -g -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE 
-D_FILE_OFFSET_BITS=64
 ifneq (,$(findstring noopt, $(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
 else

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tree depends on:
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib

tree recommends no packages.

tree suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to