Date: Mon, 16 Aug 1999 11:53:03 +0700 (OSS) From: CoreDumped@lab321.ru To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/13172: Bug in workaround of russian locale : sort command Message-ID: <199908160453.LAA27247@lab321.ru>
next in thread | raw e-mail | index | archive | help
>Number: 13172
>Category: gnu
>Synopsis: Bug in workaround of russian locale & sort command
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 15 22:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Eugeny Kuzakov
>Release: FreeBSD 2.2.8-STABLE i386
>Organization:
Laboratory 321 Ltd.
>Environment:
FreeBSD 2.2.8S,/usr/bin/sort
>Description:
When enabled koi8-r locale, sort command sorts incorrectly.
>How-To-Repeat:
Try this script:
uname -a
LANG=ru_SU.KOI8-R
echo LANG:$LANG
sort -k 3,3 -k 5,5 <<END
08/13/1999 14:55:18 bvv 193.168.6.72 adex3.flycast.com 399 TCP_MISS/200 1819
08/13/1999 14:55:18 bvv 193.168.6.72 image.linkexchange.com 563 TCP_MISS/000 2812
08/13/1999 14:55:18 vadim 193.168.6.55 www.reklama.ru 1585 TCP_MISS/000 10424
08/13/1999 14:55:18 zdg 193.168.6.84 a1.g.a.yimg.com 359 TCP_MISS/200 1873
08/13/1999 14:55:19 bvv 193.168.6.72 w101.hitbox.com 226 TCP_MISS/302 3187
08/13/1999 14:55:24 vadim 193.168.6.55 xdelo.chelyabinsk.ru 9109 TCP_MISS/200 5546
08/13/1999 14:55:27 vadim 193.168.6.55 count.ru 1785 TCP_MISS/200 4391
08/13/1999 14:55:30 vadim 193.168.6.55 www.reklama.ru 7899 TCP_MISS/200 5400
08/13/1999 14:55:32 zdg 193.168.6.84 a32.g.a.yimg.com 425 TCP_MISS/200 1930
08/13/1999 14:55:32 zdg 193.168.6.84 f2.mail.yahoo.com 6856 TCP_MISS/200 8378
END
LANG=C
echo LANG:$LANG
sort -k 3,3 -k 5,5 <<END
08/13/1999 14:55:18 bvv 193.168.6.72 adex3.flycast.com 399 TCP_MISS/200 1819
08/13/1999 14:55:18 bvv 193.168.6.72 image.linkexchange.com 563 TCP_MISS/000 2812
08/13/1999 14:55:18 vadim 193.168.6.55 www.reklama.ru 1585 TCP_MISS/000 10424
08/13/1999 14:55:18 zdg 193.168.6.84 a1.g.a.yimg.com 359 TCP_MISS/200 1873
08/13/1999 14:55:19 bvv 193.168.6.72 w101.hitbox.com 226 TCP_MISS/302 3187
08/13/1999 14:55:24 vadim 193.168.6.55 xdelo.chelyabinsk.ru 9109 TCP_MISS/200 5546
08/13/1999 14:55:27 vadim 193.168.6.55 count.ru 1785 TCP_MISS/200 4391
08/13/1999 14:55:30 vadim 193.168.6.55 www.reklama.ru 7899 TCP_MISS/200 5400
08/13/1999 14:55:32 zdg 193.168.6.84 a32.g.a.yimg.com 425 TCP_MISS/200 1930
08/13/1999 14:55:32 zdg 193.168.6.84 f2.mail.yahoo.com 6856 TCP_MISS/200 8378
END
>Fix:
I am just compiled sort command from -current. :)
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908160453.LAA27247>
