From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 28 14:50:17 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B31816A4CE for ; Tue, 28 Sep 2004 14:50:17 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FD3C43D2F for ; Tue, 28 Sep 2004 14:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8SEoHGC049205 for ; Tue, 28 Sep 2004 14:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8SEoHg0049204; Tue, 28 Sep 2004 14:50:17 GMT (envelope-from gnats) Resent-Date: Tue, 28 Sep 2004 14:50:17 GMT Resent-Message-Id: <200409281450.i8SEoHg0049204@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Giorgos Keramidas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DBF916A749 for ; 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 ; 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])i8SEfmPN017358 for ; Tue, 28 Sep 2004 17:41:51 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i8SEflXU005023 for ; Tue, 28 Sep 2004 17:41:47 +0300 (EEST) (envelope-from keramida@orion.daedalusnetworks.priv) Received: (from keramida@localhost)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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/72148: thousands separator for el_GR.ISO8859-7 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 14:50:17 -0000 >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: