bin/72148: thousands separator for el_GR.ISO8859-7

Giorgos Keramidas keramida at FreeBSD.org
Tue Sep 28 07:50:17 PDT 2004


>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 at 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:


More information about the freebsd-bugs mailing list