From keramida@bytemobile.com  Tue Sep 28 14:41:54 2004
Return-Path: <keramida@bytemobile.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3DBF916A749
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Sep 2004 14:41:54 +0000 (GMT)
Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 60E3B43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Sep 2004 14:41:53 +0000 (GMT)
	(envelope-from keramida@bytemobile.com)
Received: from orion.daedalusnetworks.priv (host5.bedc.ondsl.gr [62.103.39.229])
	by rosebud.otenet.gr (8.13.1/8.13.1/Debian-13.OTEnet.1) with SMTP id i8SEfmPN017358
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Sep 2004 17:41:51 +0300
Received: from orion.daedalusnetworks.priv (orion [127.0.0.1])
	by orion.daedalusnetworks.priv (8.13.1/8.13.1) with ESMTP id i8SEflXU005023
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Sep 2004 17:41:47 +0300 (EEST)
	(envelope-from keramida@orion.daedalusnetworks.priv)
Received: (from keramida@localhost)
	by orion.daedalusnetworks.priv (8.13.1/8.13.1/Submit) id i8SEflJu005022;
	Tue, 28 Sep 2004 17:41:47 +0300 (EEST)
	(envelope-from keramida)
Message-Id: <200409281441.i8SEflJu005022@orion.daedalusnetworks.priv>
Date: Tue, 28 Sep 2004 17:41:47 +0300 (EEST)
From: Giorgos Keramidas <keramida@freebsd.org>
Reply-To: Giorgos Keramidas <keramida@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: thousands separator for el_GR.ISO8859-7
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72148
>Category:       conf
>Synopsis:       thousands separator for el_GR.ISO8859-7
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 28 14:50:16 GMT 2004
>Closed-Date:    Sat Oct 16 22:00:00 GMT 2004
>Last-Modified:  Sat Oct 16 22:00:00 GMT 2004
>Originator:     Giorgos Keramidas
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:

System: FreeBSD orion.daedalusnetworks.priv 6.0-CURRENT
FreeBSD 6.0-CURRENT #0: Fri Sep 24 13:07:36 EEST 2004
root@orion.daedalusnetworks.priv:/usr/obj/usr/src/sys/WINTER i386

>Description:

I've been using the attached patch locally to enable the "thousands
separator" for the Greek locale (el_GR.ISO8859-7).  The change was
relatively simple to come up with and test after David Schultz
explained the format of the file to me.

>How-To-Repeat:

        Before patching your locale definitions you cannot see any
        thousands separator with the default numericdef file. Only the
        fractional part is separated with a comma:

        # env -i LANG=el_GR LC_ALL=el_GR.ISO8859-7 \
          printf "%'.2f\n" 1234567890
        1234567890,00

        After applying the attached patch the thousands separator is
        correctly printed as a dot (`.') character by printf(1):

        # env -i LANG=el_GR LC_ALL=el_GR.ISO8859-7 \
          printf "%'.2f\n" 1234567890
        1.234.567.890,00

>Fix:

% Index: el_GR.ISO8859-7.src
% ===================================================================
% RCS file: /home/ncvs/src/share/numericdef/el_GR.ISO8859-7.src,v
% retrieving revision 1.2
% diff -u -r1.2 el_GR.ISO8859-7.src
% --- el_GR.ISO8859-7.src	10 Feb 2001 19:06:32 -0000	1.2
% +++ el_GR.ISO8859-7.src	24 Sep 2004 14:29:57 -0000
% @@ -8,5 +8,5 @@
%  # thousands_sep
%  .
%  # grouping
% --1
% +3;3
%  # EOF
>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: bin/72148: thousands separator for el_GR.ISO8859-7
Date: Tue, 28 Sep 2004 17:41:47 +0300 (EEST)

 >Number:         72148
 >Category:       bin
 >Synopsis:       thousands separator for el_GR.ISO8859-7
 >Confidential:   no
 >Severity:       non-critical
 >Priority:       medium
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          change-request
 >Submitter-Id:   current-users
 >Arrival-Date:   Tue Sep 28 14:50:16 GMT 2004
 >Closed-Date:
 >Last-Modified:
 >Originator:     Giorgos Keramidas
 >Release:        FreeBSD 6.0-CURRENT i386
 >Organization:
 >Environment:
 
 System: FreeBSD orion.daedalusnetworks.priv 6.0-CURRENT
 FreeBSD 6.0-CURRENT #0: Fri Sep 24 13:07:36 EEST 2004
 root@orion.daedalusnetworks.priv:/usr/obj/usr/src/sys/WINTER i386
 
 >Description:
 
 I've been using the attached patch locally to enable the "thousands
 separator" for the Greek locale (el_GR.ISO8859-7).  The change was
 relatively simple to come up with and test after David Schultz
 explained the format of the file to me.
 
 >How-To-Repeat:
 
         Before patching your locale definitions you cannot see any
         thousands separator with the default numericdef file. Only the
         fractional part is separated with a comma:
 
         # env -i LANG=el_GR LC_ALL=el_GR.ISO8859-7 \
           printf "%'.2f\n" 1234567890
         1234567890,00
 
         After applying the attached patch the thousands separator is
         correctly printed as a dot (`.') character by printf(1):
 
         # env -i LANG=el_GR LC_ALL=el_GR.ISO8859-7 \
           printf "%'.2f\n" 1234567890
         1.234.567.890,00
 
 >Fix:
 
 % Index: el_GR.ISO8859-7.src
 % ===================================================================
 % RCS file: /home/ncvs/src/share/numericdef/el_GR.ISO8859-7.src,v
 % retrieving revision 1.2
 % diff -u -r1.2 el_GR.ISO8859-7.src
 % --- el_GR.ISO8859-7.src	10 Feb 2001 19:06:32 -0000	1.2
 % +++ el_GR.ISO8859-7.src	24 Sep 2004 14:29:57 -0000
 % @@ -8,5 +8,5 @@
 %  # thousands_sep
 %  .
 %  # grouping
 % --1
 % +3;3
 %  # EOF
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Sat Oct 16 21:57:50 GMT 2004 
State-Changed-Why:  
I've already committed this to HEAD and RELENG_5, after a review 
from RE.  There are no plans to make an equivalent change to 4.X, 
at least from my side, so this can close now. 

Reminded by:	simon 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72148 
>Unformatted:
