From owner-cvs-all Fri Feb 9 16:43:51 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 86A2837B698; Fri, 9 Feb 2001 16:43:33 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1A0hXY47915; Fri, 9 Feb 2001 16:43:33 -0800 (PST) (envelope-from ache) Message-Id: <200102100043.f1A0hXY47915@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Fri, 9 Feb 2001 16:43:33 -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 16:43:33 PST Modified files: lib/libc/locale lmonetary.c lnumeric.c Log: NOTE: according to SUSV2 and other implementations, numeric elements in LC_MONETARY, LC_NUMERIC are byte-arrays, not ASCII strings! Fix "C" locale, change "-1" to {CHAR_MAX, '\0'} according to standards. This is only partial fix - locale loading procedure remains broken as before and load too big values for all locales. All numeric strings there should be converted with something like atoi() and placed into bytes. Maybe I do it later, if someone will not fix it faster. Revision Changes Path 1.2 +3 -2 src/lib/libc/locale/lmonetary.c 1.2 +7 -4 src/lib/libc/locale/lnumeric.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message