From maxim@macomnet.ru  Sun Dec 30 11:11:38 2001
Return-Path: <maxim@macomnet.ru>
Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10])
	by hub.freebsd.org (Postfix) with ESMTP
	id 070BF37B405; Sun, 30 Dec 2001 11:11:37 -0800 (PST)
Received: from news1.macomnet.ru (maxim@news1.macomnet.ru [195.128.64.14])
	by relay1.macomnet.ru (8.11.3/8.11.3) with ESMTP id fBUJBZ44109794;
	Sun, 30 Dec 2001 22:11:35 +0300 (MSK)
Message-Id: <20011230220230.W94005-100000@news1.macomnet.ru>
Date: Sun, 30 Dec 2001 22:11:35 +0300 (MSK)
From: Maxim Konovalov <maxim@macomnet.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc: grg@philol.msu.ru, <ache@FreeBSD.org>
Subject: Re: comm doesn't obey current locale collation

>Number:         33349
>Category:       bin
>Synopsis:       Re: comm doesn't obey current locale collation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 30 11:20:01 PST 2001
>Closed-Date:    Mon Jan 7 13:26:35 PST 2002
>Last-Modified:  Thu Oct 07 18:46:15 GMT 2004
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hello,
 
 I have to ask to reopen the PR because the bug still exists. Seems
 
 (void) setlocale(LC_CTYPE, "");
 
 is not enough because strcoll(3) is controlled by LC_COLLATE. We have
 to set both LC_CTYPE and LC_COLLATE or LC_ALL as in an original patch.
 
 What about this patch:
 
 Index: comm.c
 ===================================================================
 RCS file: /home/ncvs/src/usr.bin/comm/comm.c,v
 retrieving revision 1.16
 diff -u -r1.16 comm.c
 --- comm.c	10 Dec 2001 21:13:04 -0000	1.16
 +++ comm.c	30 Dec 2001 18:55:43 -0000
 @@ -82,7 +82,8 @@
  	flag1 = flag2 = flag3 = 1;
  	iflag = 0;
 
 -	(void) setlocale(LC_CTYPE, "");
 +	(void)setlocale(LC_CTYPE, "");
 +	(void)setlocale(LC_COLLATE, "");
 
  	while ((ch = getopt(argc, argv, "-123i")) != -1)
  		switch(ch) {
 
 -- 
 Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
 phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Mon Jan 7 13:26:35 PST 2002 
State-Changed-Why:  
Not a PR. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33349 
>Unformatted:
