Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2001 22:16:58 +0200
From:      Alexey Zelkin <phantom@FreeBSD.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/locale fix_grouping.c Makefile.inc lmonetary.c lnumeric.c localeconv.c
Message-ID:  <20010210221658.A55284@ark.cris.net>
In-Reply-To: <20010210203601.A75114@nagual.pp.ru>; from ache@nagual.pp.ru on Sat, Feb 10, 2001 at 08:36:01PM %2B0300
References:  <200102101536.f1AFalt39792@freefall.freebsd.org> <20010210203601.A75114@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

On Sat, Feb 10, 2001 at 08:36:01PM +0300, Andrey A. Chernov wrote:

> > phantom     2001/02/10 07:36:47 PST
> > 
> >   Modified files:
> >     lib/libc/locale      Makefile.inc lmonetary.c lnumeric.c 
> >                          localeconv.c 
> >   Added files:
> >     lib/libc/locale      fix_grouping.c 
> >   Log:
> >   . Fix semantics of grouping (LC_MONETARY::mon_grouping,
> >     LC_NUMERIC::grouping) values.
> >   . Always set __XXX_changed flags then loading numeric & monetary locale
> >     categories to allow localeconv() to use C locale also.
> 
> lmonetary.c lnumeric.c:
> C locale - numempty[] is wrong. It is double-converted as result. It must
> be "-1".
How ? Conversion is related to loaded locale part only. It does not
affect predefined _C_ locale structures.

> Current path numempty -> cnv -> localeconv is
> "\x7F" -> 0 in your variant
> "-1" -> 0x7F in right variant

> fix_grouping.c:
> missing <ctype.h> for isdigit()
> isdigit() arg must be casted to (unsigned char)
Done. Thanks for reminder!

-- 
/* Alexey Zelkin               && phantom@cris.net       */
/* Tavric National University  && phantom@FreeBSD.org    */
/* Sysadmin/Developer          && phantom@sms.umc.com.ua */


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010210221658.A55284>