diff -p can truncate in the middle of a multi-byte character
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diffutils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
To reproduce, try this with the attached sample files:
diff -up one.txt two.txt | iconv -f UTF-8 -t UTF-8 > /dev/null
You will see
iconv: illegal input sequence at position 151
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: diff 1:3.0-1
ProcVersionSign
Uname: Linux 3.0.0-14-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Dec 12 18:47:04 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
PackageArchitec
ProcEnviron:
LANGUAGE=
LC_CTYPE=
PATH=(custom, user)
LANG=lt_LT.UTF-8
SHELL=/bin/bash
SourcePackage: diffutils
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (59 days ago)