From owner-cvs-all Fri Feb 9 17:38:37 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 07E9837B65D; Fri, 9 Feb 2001 17:38:19 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1A1cIP54769; Fri, 9 Feb 2001 17:38:18 -0800 (PST) (envelope-from ache) Message-Id: <200102100138.f1A1cIP54769@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Fri, 9 Feb 2001 17:38:18 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/locale lmonetary.c lnumeric.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ache 2001/02/09 17:38:18 PST Modified files: lib/libc/locale lmonetary.c lnumeric.c Log: Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY, LC_NUMERIC fields, but only for *grouping fields - other fields are converted to a chars in localeconv(), so final change is: "-1" -> "127" 127 here is because CHAR_MAX supposed, which is _positive_ (SUSv2 requirement), not negative as 255. It is still a bit of hack. To find real CHAR_MAX will be better to sprintf() it once somewhere in static buffer. *grouping parsing still broken and missing and needs to be implemented. Revision Changes Path 1.3 +2 -3 src/lib/libc/locale/lmonetary.c 1.3 +2 -3 src/lib/libc/locale/lnumeric.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message