Package: coreutils
Version: 8.5-1
Severity: normal

According to POSIX the fold utility is intended to fold characters, with
the '-b' flag used to fold bytes instead. However, GNU fold will always
fold bytes. Compare:

  $ echo '$$$$$$$$' | fold -w 4
  $ echo '££££££££' | fold -w 4

The former will produce 2 lines, while the latter will produce 4, since
the UTF-8 character '£' consists of 2 bytes. The behaviour is identical
when the '-b' flag is used. FreeBSD's fold treats multibyte characters
correctly.


-- System Information:
Debian Release: 6.0.1
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.49-4   Access control list shared library
ii  libattr1                      1:2.4.44-2 Extended attribute shared library
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries

coreutils recommends no packages.

coreutils 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