cut() does not handle unicode properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
$ echo 哈哈
哈哈
$ echo 哈哈 | cut -c 2-
��哈
Apparently, Red Hat patched this in or before FC15.
http://
[patches@holocene ~]$ rpm -q coreutils
coreutils-
[patches@holocene ~]$ echo 哈哈 | cut -c 2-
哈
The patch is here: http://
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: coreutils 8.21-1ubuntu5.1
ProcVersionSign
Uname: Linux 3.13.0-44-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Jan 24 10:06:25 2015
InstallationDate: Installed on 2013-05-22 (611 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
SourcePackage: coreutils
UpgradeStatus: Upgraded to trusty on 2015-01-04 (19 days ago)